Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

to install Arch on a PC I have to make partition of the HDD

  • boot
  • swap
  • /

The swap is used by virtual memory, right? What's up if I make a too small or a too big swap partition? Could I have as result some kernel panic?

share|improve this question
You don't have to have a swap partition. You could use a swap file instead (or even no swap at all). For that matter, you don't even have to have a separate boot partition. – cjm Mar 19 '13 at 16:55
up vote 3 down vote accepted

Actually you don't need the swap partition and the /boot partition.

But returning to your question: yes, the swap is used as virtual memory (and also for hibernation). If both the swap file and the physical RAM fill up, you most likely won't have a kernel panic: applications will just start to be killed by the kernel's out-of-memory killer.

But at this point your system will be unbearably slow (which might lead you to think that it has crashed) due to the heavy swapping.

If you have a too-big swap partition, it just won't be used and will be wasted disk space.

share|improve this answer
swap is also used for hibernation by default. – peterph Mar 19 '13 at 17:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.