PDA

View Full Version : [ubuntu] added RAM to 9.04



brown705
May 7th, 2009, 06:06 PM
I'm a Linux newbie (been toying with Ubuntu since 7.10 though) and a Windows expert. I just added RAM to my Jaunty box, going from 1.5 GB to 2 GB. If I were running Windows, I would adjust the pagefile size accordingly. Is there some sort of adjustment I should do in Ubuntu regarding the addition of RAM?

Thanks,
Michael

Krupski
May 7th, 2009, 06:14 PM
I'm a Linux newbie (been toying with Ubuntu since 7.10 though) and a Windows expert. I just added RAM to my Jaunty box, going from 1.5 GB to 2 GB. If I were running Windows, I would adjust the pagefile size accordingly. Is there some sort of adjustment I should do in Ubuntu regarding the addition of RAM?

Thanks,
Michael

Linux doesn't need or use the swapfile unless it's running low on memory and has to swap some out.

Linux will run with no swap file at all, but then you run into the "danger" of Linux killing some running processes to gain back some memory. If it kills the wrong things, the system could crash.

So, the linux pagefile isn't terribly important... other than there should be SOME just in case.

Try typing this command in a console window:



free -kolt



You will see an output something like this:



root@storage:/# free -kolt
total used free shared buffers cached
Mem: 8107368 8047456 59912 0 38856 7757556
Low: 8107368 8047456 59912
High: 0 0 0
Swap: 4011792 2880 4008912
Total: 12119160 8050336 4068824


See the numbers I highlighted in red? That's your available swap space, and how much is in use, respectively.

If you have quite a bit more AVAILABLE than you are already USING, then leave it alone and all will be fine.

-- Roger

brown705
May 7th, 2009, 06:28 PM
Linux doesn't need or use the swapfile unless it's running low on memory and has to swap some out.

Linux will run with no swap file at all, but then you run into the "danger" of Linux killing some running processes to gain back some memory. If it kills the wrong things, the system could crash.

So, the linux pagefile isn't terribly important... other than there should be SOME just in case.

Try typing this command in a console window:



free -kolt



You will see an output something like this:



root@storage:/# free -kolt
total used free shared buffers cached
Mem: 8107368 8047456 59912 0 38856 7757556
Low: 8107368 8047456 59912
High: 0 0 0
Swap: 4011792 2880 4008912
Total: 12119160 8050336 4068824


See the numbers I highlighted in red? That's your available swap space, and how much is in use, respectively.

If you have quite a bit more AVAILABLE than you are already USING, then leave it alone and all will be fine.

-- Roger

Roger,

Thanks for your help and the explanation. I ran this with only a few Firefox windows open besides the Terminal window:

total used free shared buffers cached
Mem: 2052068 551832 1500236 0 22464 223380
Low: 869828 68704 801124
High: 1182240 483128 699112
Swap: 1646620 0 1646620
Total: 3698688 551832 3146856


Michael

Krupski
May 7th, 2009, 07:57 PM
Roger,

Thanks for your help and the explanation. I ran this with only a few Firefox windows open besides the Terminal window:

total used free shared buffers cached
Mem: 2052068 551832 1500236 0 22464 223380
Low: 869828 68704 801124
High: 1182240 483128 699112
Swap: 1646620 0 1646620
Total: 3698688 551832 3146856


Michael

Yup... your available swap space is 1.6 gigabytes and you are currently using zero. I would say you can safely leave it as-is.

-- Roger