Quote:
Originally Posted by
jlliagre
Granted.
Perhaps with HP-UX with which I have no recent experience but virtual swap was definitely an enhancement when it was implemented with other Unixes.
With Irix it means overcommitment of virtual memory, which can lead to stability issues. With SunOS/Solaris it means delaying paging decisions needed with the performance penalties I described earlier in stressful situations. That is just a design choice with pros and cons.
Quote:
I don't get why reserving virtual memory would be faster whether it is backed by disk or not. In both cases, the back-end device is not accessed anyway.
I was not referring to speed
Quote:
Only if there is no more free swap space available. I'm afraid you are confusing reserving and allocating virtual memory. Reserving consume no RAM space. The pages on RAM will certainly be paged out to swap when needed.
I am not confusing anything. I was talking about pseudoswap, where virtual memory that gets reserved actually gets preallocated. Pages in pseudoswap will not be paged out.
Quote:
This incorrect. RAM will be only allocated for accessed (read from/write to) pages and hopefully there is no difference between HP-UX and other OSes here.
It is not incorrect (see above). There is a big difference here.
Quote:
I doubt that make any visible difference.
Well I have witnessed it.
Quote:
Only unused memory is wasted memory. As I already wrote, there is absolutely no difference between hp-ux and other Unixes regarding the RAM footprint of identical applications.
There is for pseudoswap. For every other system that does not have enough physical paging space available the effect is similar, because virtual memory is limited and this typically means a large part of your RAM never gets used.
---------- Post updated at 03:18 PM ---------- Previous update was at 02:43 PM ----------
Quote:
Originally Posted by
Corona688
I'm not sold on the idea of a "smooth transition" between swapping and not swapping in any case, unless some memory is reserved for disk cache. It's an interesting argument either way, but I believe we are getting distracted here... The system in question:
- Does not run HP-UX,
- Has a bit of a disk bottleneck.
Even if it has enough swap to hold all memory, loading it to the point where it needs it will hurt performance quite a lot. Unless it's load that he's testing, the demands on a test server shouldn't be that extreme.
I agree the discussion is becoming a bit broad here, HP-UX was not even directly relevant to the discussion but served as an example and we fanned out from there
My point was simply that if you do not have enough physical swap space, part of internal memory will never get used, simply because processes will not be allowed to start due to insufficient virtual memory. If you have more swap space, say equal to the amount if internal memory then this allows you to load more processes but typically this will still not lead to a situation where actual paging does occur. If you keep adding more swap space then this allows you to continue loading up to the point where actual paging does start to occur. A little bit of paging does not hurt performance, but obviously if the pageout rate starts to become significant then this will gradually start to slow down the system. But you can simply control this situation by running fewer programs.
At least you have a choice then, which is not the case if you do not have enough swap space.
S.