Pagefile or Persistent file in Ubuntu?

Asked by jacob lastman

hello
is there facility for a Pagefile or Persistent file in Ubuntu?

ie: the large temporary swap space on the hard disk?

if so where and how do i control it?

thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

Yes, however in ubuntu (or most linux distributions) it is a dedicated partition on the harddrive. in order to add more swap space, you need to repartition your drive.

If you wish to alter how the kernel controls the use of swap space, you need to alter the kernel's swappiness parameter

https://help.ubuntu.com/community/SwapFaq

Revision history for this message
Ubfan (ubfan1) said :
#2

See the man page for swapon
man swapon
Page/swap are pretty much the same in Linux.

Revision history for this message
jacob lastman (ndhlovo) said :
#3

phil@phil-Inspiron-6000:~$ free
             total used free shared buffers cached
Mem: 508276 498388 9888 0 24084 106828
-/+ buffers/cache: 367476 140800
Swap: 1531900 86928 1444972
phil@phil-Inspiron-6000:~$

that should do it?!

as a matter of interest if we use an SD card as a dedicated swap drive that should be faster not so?

Revision history for this message
Ubfan (ubfan1) said :
#4

The IO speed of an SD card is usually much slower than the IO speed of a hard disk, so I'd guess that would slow things down. I could see using a small SD card for swap if you are running off a larger (more expensive) SD card or USB flash stick, but I just avoid swap in that case since I have the memory.

Revision history for this message
jacob lastman (ndhlovo) said :
#5

 many thanks guys esp Ubfan, i have 512mb ram and 80gb hdd . i read SD memory -esp HDSD is faster than spinning hard disk - anyway i digress.

i have discovered that using Hibernate on linux appears to mess the system.

i have a new clean install and 522ram plus the std 1500mb swap ...it was brillinat until i started to use hibernate

i only open two web pages and it starts to drag!!

Can you help with this problem?

Provide an answer of your own, or ask jacob lastman for more information if necessary.

To post a message you must log in.