Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Swappiness needs to be reduced and zram swap added
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Swappiness needs to be reduced and zram swap added
23rd Mar, 2015, 10:03 PM
Post: #1
jbruchon Offline
Registered
Posts: 1
Joined: Mar 2015
Reputation: 0
Swappiness needs to be reduced and zram swap added
I am using the RPi model B (512MB) for which 'free' reports 366012 KB of total available memory. I have experienced occasional problems with audio/video freezing and stuttering on Xbian (particularly on 1080p streams) and I have determined that this is due to aggressive swapping the SD card and the swap thrashing that results. I reduced swappiness in /etc/sysctl.d/00-xbian to 'vm.swappiness = 20' and most of the video problems went away. It also seems as if apt occasionally starts to check for updated software (because of cron?) and gets stuck, never terminating.

Also, to minimize swaps to the slow SD card, the zram module needs to be added to the system and a small zram-based swap should be set up with a higher priority than the SD card. Combining these two changes will eliminate most of the unnecessary swapping overhead and improve the system's overall responsiveness. Unfortunately, the kernel in Xbian doesn't have zram available, preventing me from easily adding it to my own installation.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Swappiness needs to be reduced and zram swap added - jbruchon - 23rd Mar, 2015 10:03 PM
RE: Swappiness needs to be reduced and zram swap added - f1vefour - 26th Mar, 2015, 09:39 AM
RE: Swappiness needs to be reduced and zram swap added - Fabio72 - 26th Mar, 2015, 07:20 PM
RE: Swappiness needs to be reduced and zram swap added - narotic - 10th Apr, 2015, 08:45 AM
RE: Swappiness needs to be reduced and zram swap added - narotic - 10th Apr, 2015, 08:47 AM
RE: Swappiness needs to be reduced and zram swap added - Fabio72 - 11th Apr, 2015, 05:39 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 11th Jun, 2025, 08:59 PM Powered By MyBB, © 2002-2025 MyBB Group.