You are not logged in.

#1 2011-01-14 10:45:52

CaptainKirk
Member
Registered: 2009-06-07
Posts: 391

Is my Swap Configured Correctly?

I had a .doc file open in OpenOffice for a few hours while worked on other things. I went back to it now and I heard my hardrive disk suddenly move and OO was SLOW to come up. So I went fast to conky (on my Xfce desktop) but I see 1.64G out of 1.97G = 83% and swap is .197G out of 3.7G = 5%.

Seems odd. It has to be that it was swapped out, but the numbers don't appear to make sense.

Maybe conky is wrong or maybe my swap is not configured correctly? I have a new PC on order but I would really like to try to understand what is happening, in particular so I can setup the new one better!

I don't know what precisely to post, but here is what I think is relevant:

[kirk@localhost ~]$ df -k
Filesystem 1K-blocks Used Available Use% Mounted on
udev 10240 232 10008 3% /dev
/dev/disk/by-uuid/d9383ddd-35dd-406a-b0d1-1fe7a753d9b5
24027656 18199800 4607320 80% /
none 1031732 2060 1029672 1% /dev/shm
/dev/sdb1 186663 14785 162241 9% /boot
/dev/sdb5 96124904 32429224 588127288 36% /srv
/dev/sdb6 183475692 120167828 53987756 70% /home
[kirk@localhost ~]$ swapon -s
Filename Type Size Used Priority
/dev/sdb2 partition 3903788 204196 -1
[kirk@localhost ~]$ fdisk -l /dev/sdb2
Cannot open /dev/sdb2
[kirk@localhost ~]$ cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump>
<pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0

## from :
http://wiki.archlinux.org/index.php/VirtualBox#Getting_USB_to_work_in_the_guest_machine
none /proc/bus/usb usbfs
auto,busgid=108,busmode=0775,devgid=108,devmode=0664 0 0


#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
##/dev/fd0 /media/fl auto user,noauto 0 0

UUID=6ccd5f92-eaeb-4d44-954b-480156040843 /boot ext2 defaults 0 1
UUID=b9427624-ee3a-4477-8a7a-55dfc2155e9b swap swap defaults 0 0
UUID=d9383ddd-35dd-406a-b0d1-1fe7a753d9b5 / ext3 defaults 0 1
UUID=e3ab26e7-2eca-4090-87e2-ec202da98661 /srv ext3 defaults 0 1
UUID=ede8ad48-1dd2-43a4-98db-c8049b777ef0 /home ext3 defaults 0 1

Offline

#2 2011-01-14 11:02:44

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Is my Swap Configured Correctly?

Nothings wrong. Google swappiness to understand what happened.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2011-01-14 11:16:12

CaptainKirk
Member
Registered: 2009-06-07
Posts: 391

Re: Is my Swap Configured Correctly?

Oh. Makes sense now that I read up about it. I set:

vm.swappiness=20
vm.vfs_cache_pressure=50

for now and I will reboot soon and see if it's better.

Thank you.

Offline

#4 2011-01-15 00:09:07

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Is my Swap Configured Correctly?

CaptainKirk wrote:

Oh. Makes sense now that I read up about it. I set:

vm.swappiness=20
vm.vfs_cache_pressure=50

for now and I will reboot soon and see if it's better.

Thank you.

Well done smile. Mark [solved] if you do get it working satisfactorily.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB