swap partition size regarding to kernel panic ?
Hello!
I last days i reading a lot information about creating software RAID 1 massives under linux, and in one document in russian ( looks it translate from english, but not contains any link to original) i found advice to create swap partition with minimum size of RAM *1.25, because, as they wrote, in such a kernel panic, for all ram amount must be entire on swap partition, because if not, can be data damage in next partition space on HDD.... ( it means, when encaounter a kernel panic situation, kernel puts all RAM contain to swap file / partition). can anyone, who is close with "how kernel works in low level", comment this? it is a real thing, or myth? |
Myth - absolute rubbish.
In a panic, the contents of memory are not (usually) written anywhere - all processing effectively just "stops". It is possible to configure things like kdump to write out dumps, but even that won't write over the current swap partition. |
Ever since I've had systems with 1GB or more of RAM, I've stopped adding a swap partition and never had a problem yet. I don't know though if the fs one uses would make any difference, but I've been a firm believer (and it's paid off many, many times!) in reiserfs...just in case that happens to come up for any reason.
|
2 syg00: thanks for clarification.
2 irgunII: i found, even small swapspace enabled do system work better. after i installed slack14 32bit on my home desktop with 3 gb ram, i do with commented swap in fstab, but sometimes after a few hours work ( i use kde) it strangely lost network settings ( ip address). maybe its not chained, but after that i enable swap space, and computer looks like work a bit better. simply me own opinion... |
All times are GMT -5. The time now is 09:38 AM. |