|
|
|
|
|
by Dylan16807
3072 days ago
|
|
> Applications can mmap() a file and use that region for "rarely used data" if such is known in advance. They could, but that's a lot like just making swap be manual. > Extraneous functions should be backed by the executable in the common case. I don't mean the code itself, I mean all the data it builds up for something that isn't needed. |
|
Sure. Isn't that a good thing? Rarely-used data can be swapped out to storage allocated for the purpose, as you desire, and too-large working sets don't have to hose the machine.
> I don't mean the code itself, I mean all the data it builds up for something that isn't needed.
I guess I don't often run programs that waste large amounts of memory for no reason. Either my working set fits or it's too large, and swap only matters if it's too large.
Is Java the typical beneficiary here?