| View previous topic :: View next topic |
| Author |
Message |
GSnake Tux's lil' helper

Joined: 10 Sep 2012 Posts: 91 Location: Italy
|
Posted: Mon Feb 04, 2013 8:52 pm Post subject: SWAP used immediately |
|
|
Hello,
I noticed that my SWAP partition is used as soon as possible. I'm compiling a few things and my SWAP partition (512MB) is 45% full already with only 1.45GB/4.00GB of RAM used!
I already checked my swappiness and it is set to 10. What can I do? |
|
| Back to top |
|
 |
eccerr0r Advocate

Joined: 01 Jul 2004 Posts: 3037 Location: USA
|
Posted: Mon Feb 04, 2013 11:04 pm Post subject: |
|
|
What are you compiling, are you using tmpfs for portage tmpdir, etc.?
Too many unanswered questions here to explain why it's exhibiting the behavior.
And swap usage is not necessarily bad. If you never used swap, why bother having it? _________________ Core-i7-2700K@4.1GHz/8GB RAM/180GB SSD/Intel HD3000 graphics
What the heck am I advocating? |
|
| Back to top |
|
 |
GSnake Tux's lil' helper

Joined: 10 Sep 2012 Posts: 91 Location: Italy
|
Posted: Mon Feb 04, 2013 11:07 pm Post subject: |
|
|
Exactly. I'm putting portage dir in RAM every time...
MTAB:
| Code: | rootfs / rootfs rw 0 0
/dev/root / ext4 rw,noatime,nodiratime,discard,user_xattr,commit=0 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1989632k,nr_inodes=497408,mode=755 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
cgroup_root /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime 0 0
openrc /sys/fs/cgroup/openrc cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc 0 0
cpuset /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
blkio /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
bfqio /sys/fs/cgroup/bfqio cgroup rw,nosuid,nodev,noexec,relatime,bfqio 0 0
/dev/sda5 /boot ext2 rw,noatime,errors=continue 0 0
tmpfs /tmp tmpfs rw,noatime 0 0
tmpfs /var/tmp tmpfs rw,noatime 0 0
|
|
|
| Back to top |
|
 |
eccerr0r Advocate

Joined: 01 Jul 2004 Posts: 3037 Location: USA
|
Posted: Mon Feb 04, 2013 11:10 pm Post subject: |
|
|
A 4GB machine is not enough to run tmpdir in tmpfs for some packages, at least that's what I've found. Building one of the big packages will cause the machine to swap as it will run out of RAM during compile. _________________ Core-i7-2700K@4.1GHz/8GB RAM/180GB SSD/Intel HD3000 graphics
What the heck am I advocating? |
|
| Back to top |
|
 |
SlashBeast Moderator


Joined: 23 May 2006 Posts: 2727
|
Posted: Mon Feb 04, 2013 11:32 pm Post subject: |
|
|
Note that tmpfs's content looks like disk buffers to `free` etc, so you have 1.4G used + the used space of tmpfs. You can check it by droping all caches by `echo 3 > /proc/sys/vm/drop_caches` and then see `free -m`. Note that after droping cache your system will be extreme slow for few moments. _________________ github |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|