Author Topic: How to stop irqbalance v 1.0.3 eating your memory  (Read 948 times)

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3992
How to stop irqbalance v 1.0.3 eating your memory
« on: December 22, 2011, 08: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: [Select]

#!/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.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf

Offline MtnMan

  • Sr. Member
  • ****
  • Posts: 258
  • Aged to perfection
Re: How to stop irqbalance v 1.0.3 eating your memory
« Reply #1 on: December 22, 2011, 09: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
« Last Edit: December 22, 2011, 11:33:48 AM by MtnMan »
I worry that the person who thought up Muzak may be thinking up something else. - Lily Tomlin

Offline kjpetrie

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3992
Re: How to stop irqbalance v 1.0.3 eating your memory
« Reply #2 on: December 22, 2011, 04: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.
-----------
KJP
-----------------------------------------------------------
PClos64 RC1 on Intel D945GCLF2 motherboard (Atom 330), 2GB DDR2 RAM, Maxtor STM325031, HL-DT-ST DVDRAM GSA-H42N, Amilo LSL 3220T monitor. Also Acer 5810TG (with custom kernel) and Asus eeePC 2G surf