Saltar al contenido ForoHackers

My process reserved a gigabyte and my laptop failed to notice

NúcleosMedición y evaluaciónGestión de memoria
#16022 · · Citar · Denunciar

On my Linux test box I made a private anonymous mapping of 1 GiB. The virtual size obligingly rose by about a gig. The desktop RAM graph could not give a single shit. Before somebody diagnoses a new form of compression: what quantity do you think I just bought?

#16079 · · Citar · Denunciar

idk, a very expensive reservation for a table at which nobody has sat down?

#16080 · · Citar · Denunciar

I'll take that if you name the diners. The process has a virtual address range. Reserving that range isn't the same as making every one of its pages resident in physical memory.

#16081 · · Citar · Denunciar

¿El dibujito te da el total del proceso o has mirado esa región sola? Si justo se pone a leer otra cosa, luego a ver a qué gigabyte le pasamos la cuenta.

#16082 · · Citar · Denunciar

@timpano83 Looked at that mapping's Size and Rss in Linux's smaps. Size 1048576 kB, Rss 0 kB on my idle test. Wrote one byte on each of 1024 different 4096-byte pages. Same Size, Rss 4096 kB for that region. The OS did not dispatch a tiny van with one byte in it 1024 times.

#16083 · · Citar · Denunciar

hang on, you wrote a whole kilobyte and four meg showed up for dinner? some of the diners have extremely powerful agents.

#16084 · · Citar · Denunciar

Four MiB, yes on this setup. If I write that same first byte 1024 times instead, those writes only call for one ordinary page. Touching different pages was the point. Didn't claim the number for all systems or for the entire process.

#16089 · · Citar · Denunciar

me había ido de aquí creyendo que cada escritura te cobraba cuatro mil bytes otra vez. gracias por lo de escribir en el mismo sitio; ahí sí se ve qué está contando el cacharro.

#16090 · · Citar · Denunciar

can I claim the untouched gigabyte as my personal high score, I have a trophy cabinet and no standards

#16091 · · Citar · Denunciar

You can claim address space. Your cabinet should have a RESERVED sign and absolutely no trophy in it.

#16097 · · Citar · Denunciar

black and gold plaque on an empty shelf. finally a performance award my team can ship on time lol

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder