PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 24, 2012, 06:06:23 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: How to stop irqbalance v 1.0.3 eating your memory  (Read 372 times)
kjpetrie
PCLinuxOS Tester
Hero Member
*******
Online Online

Posts: 3130


« on: December 22, 2011, 10:00:29 AM »

If you run your computer for a long time (several days) with the irqbalance service running, there is a memory leak at around 60 MB/day.

Until the coders get round to fixing it, you can keep things under control by adding the following as an executable file in /etc/cron.daily/:

Code:

#!/bin/sh

/sbin/service irqbalance restart

Save it with any suitable name that will help you remember what it's for andf don't forget to make it executable.
Logged

-----------
KJP
-----------------------------------------------------------
PClos 2010 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, Hitachi CDR-7930, ‎HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG and Asus eeePC 2G surf
MtnMan
Sr. Member
****
Offline Offline

Posts: 253

Aged to perfection


« Reply #1 on: December 22, 2011, 11:44:59 AM »

If you run your computer for a long time (several days) with the irqbalance service running, there is a memory leak at around 60 MB/day.

Can you please say how you are seeing this?  System Monitor is not showing anything for irqbalance.

Thanks

Update: Not showing in top either and I have been running 2 days. Found a few references to leaks prior to the one we have now which was updated a few days ago to 1.0.3-1 in the repo.  Sorry - confused.
https://bugzilla.redhat.com/show_bug.cgi?id=759547
Logged

I worry that the person who thought up Muzak may be thinking up something else. - Lily Tomlin
kjpetrie
PCLinuxOS Tester
Hero Member
*******
Online Online

Posts: 3130


« Reply #2 on: December 22, 2011, 06:15:48 PM »

It shows up as memory use in the KDE system use widget, which showed around 80% of my 2GB memory in use around a week ago. Then I started a virtual machine that demanded 512 MB memory, and around 500 MB was transferred to swap. As I started and stopped heavy memory applications swap grew to around 680 MB by this morning, and RAM use was also around 70% with one VM (384 MB), Firefox and Kmail as the only applications running.

I use Ctrl+Esc and clicked to order processes by memory, and there it was - irqbalance hogging 275 MB. I restarted the service and the use dropped to 20 MB and swap emptied completely. My machine had been up 15 days so that averaged a leak of 955 MB/15 or nearly 60 MB/day.

There is a note on the memory leak patch submitted in November that it only applies to running irqbalance as a command and not to daemon mode, which will be patched at an unspecified later date. So until that is done we are stuck with the leak.

A daily restart seems the best workaround I can think of to keep it in check. Of course that will happen automatically to most users who shut their machine down when not in use. Only those who run it continuously need worry.
Logged

-----------
KJP
-----------------------------------------------------------
PClos 2010 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, Hitachi CDR-7930, ‎HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG and Asus eeePC 2G surf
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM