salasi |
11-16-2010 02:58 AM |
Quote:
Originally Posted by johnsfine
(Post 4159881)
I have interpreted that common assertion as "for hibernation swap at least as big as ram is required". I expect that is untrue. At first glance, I thought that is what you meant. But I think the interpretation you are saying is untrue is "for hibernation swap as big as ram is sufficient" (sorry about the implied double negative).
|
You are exactly correct right in your interpretation; what seems to be often implied (implied rather than stated exactly, but that's what you'd expect from this kind of thinking, too) is that a swap space any larger than ram will be sufficient.
Quote:
Originally Posted by johnsfine
(Post 4159881)
It seems completely obvious that the second interpretation couldn't be true. It should be easy to use up all your swap (even if it were ten times the size of ram) and then it should be obvious that hibernation would require at least some amount more than you used without hibernation.
|
Except that compression (if used in hibernation and not used in normal operation) could get you out of trouble, but probably doesn't... OTOH, the people who come up with the 'nonsense view' of hibernation seem to just ignore the possibility that swap may well be in use at the time of hibernation.
Quote:
But how much swap was in use before trying a hiberation that failed?
|
I can't give you an exact figure; after a crash, there was nothing that I know of that gives you that information. I can give you an estimate of how much memory was habitually in use at that time.
Out of 1g of ram, 850 - 950 M was habitually in use
Out of 1.6g of swap, 1.2 - 1.4 G was habitually in use
While that is a bit inexact, its the best that I have, and at the time, hibernation was failing maybe 10 - 15 times out of a hundred.
Quote:
Originally Posted by johnsfine
(Post 4159881)
I haven't even figured out how to try hibernation, so I haven't done the opposite test (but I ought to): With 8GB of ram, cut my swap size down to 1 or 2 GB, then set up a workload using no swap space and less than 1GB of anonymous memory but more than 2GB on non anonymous memory. Then would hibernation work?
|
You would expect it to, if the non-anon gets dropped, which it should be (but i don't actually know as a fact that it is). If you do do the test, I would be very pleased to see the result.
|