neilinoz Posted October 18, 2005 Report Share Posted October 18, 2005 My PC has 384mb RAM. When I open the Gnome System Monitor, it tells me exactly how much memory my PC is using. At this present moment in time I am using the following memory: Used Memory: 234Mb of 377mb Used Swap: 118mb of 500mb This situation occurs almost every day - obviously with different amounts of memory used. Why is it that Swap is being used when there is more than enough RAM available? Is there any way to change my PC to ensure that RAM is used first before Swap? Quote Link to comment Share on other sites More sharing options...
daniewicz Posted October 18, 2005 Report Share Posted October 18, 2005 The following line can be added to the end of /etc/sysctl.conf to decrease the tendency to use the swap file: vm.swappiness=10 This changes the value from the default of 60 to a value of 10. The value currently being used can be checked by typing: cat /proc/sys/vm/swappiness Quote Link to comment Share on other sites More sharing options...
neilinoz Posted October 18, 2005 Author Report Share Posted October 18, 2005 Okay, I've done what you suggested, and when I type in cat /proc/sys/vm/swappiness it now reads 10 (it was 60 before). If I have any problems I'll come back and say so. If not - you have my great thanks in advance! Quote Link to comment Share on other sites More sharing options...
daniewicz Posted October 18, 2005 Report Share Posted October 18, 2005 You are welcome Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.