Jump to content

Swap [solved]


neilinoz
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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! :headbang:

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...