3 ms·
So, I can load a 12GB file into memory without swapping? Cool!
by sebtron 3y ago
So, I can load a 12GB file into memory without swapping? Cool!
- cesarb 3y ago> So, I can load a 12GB file into memory without swapping? It depends on the file. With memory compression (which the article says they have), as long as the file is compressible enough (for instance, a repetitive text-only log file), you can. If the file is not compressible enough, however, like an already compressed video file, the true memory size is more relevant, and you'll only be able to load a bit less than 8GB (a bit less because the operating system needs some memory for itself).
- The_Colonel 3y agoPeople rarely load 12GB of log files into memory. A much more common example is photo/video which is very difficult to losslessly compress (esp. with a generic compression algorithm like DEFLATE). I don't think this feature would help in such cases. Memory compression is also available in both Windows and Linux, so it doesn't justify the statement 8GB on Mac = 16GB elsewhere.
- deleted 3y ago[deleted]