Leak... somewhere... I periodically restart xmonad to recover gobs of swap space

Software: xmonad 0.11 xmobar 0.10 Xorg 1.14.1 After a while (say, a month) of normal activity, my swap space becomes almost entirely eaten up; the problem can be solved by restarting xmonad (`mod-q'). The problem could well be `xmobar' or `X' itself.

On Mon, Jan 13, 2014 at 1:45 PM, Michael Witten
After a while (say, a month) of normal activity, my swap space becomes almost entirely eaten up; the problem can be solved by restarting xmonad (`mod-q').
The problem could well be `xmobar' or `X' itself.
X11 seems unlikely. Memory leaks *are* possible (but unlikely) depending on what you have in your xmonad.hs. (For what it's worth, xmonad isn't even visible on my machine if I sort top by virtual process size. But it's only been running for a couple days thanks to system updates. I don't use xmobar since I run xmonad under xfce.) -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On Mon, Jan 13, 2014 at 7:08 PM, Brandon Allbery
On Mon, Jan 13, 2014 at 1:45 PM, Michael Witten
wrote: After a while (say, a month) of normal activity, my swap space becomes almost entirely eaten up; the problem can be solved by restarting xmonad (`mod-q').
The problem could well be `xmobar' or `X' itself.
X11 seems unlikely. Memory leaks *are* possible (but unlikely) depending on what you have in your xmonad.hs.
(For what it's worth, xmonad isn't even visible on my machine if I sort top by virtual process size. But it's only been running for a couple days thanks to system updates. I don't use xmobar since I run xmonad under xfce.)
Thanks for the input. I'll keep an eye on things; the next time my swap gets suffocated, I'll kill xmobar by itself to see what happens.

On Mon, Jan 13, 2014 at 3:35 PM, Michael Witten
I'll keep an eye on things; the next time my swap gets suffocated, I'll kill xmobar by itself to see what happens.
Perhaps use `top`, sorting by virtual size. (X will be large, this is something of a lie because `top` cannot tell the difference between actual memory and mapped video memory.) -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Could you include your config file? Perhaps there's something an experienced Haskeller can spot quickly. Then again perhaps not. In any case I have been using xmonad for several years and have not noticed the problem you describe. ~d On 2014-01-13 13:45, Michael Witten wrote:
Software:
xmonad 0.11 xmobar 0.10 Xorg 1.14.1
After a while (say, a month) of normal activity, my swap space becomes almost entirely eaten up; the problem can be solved by restarting xmonad (`mod-q').
The problem could well be `xmobar' or `X' itself.
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

On Tue, 14 Jan 2014 15:23:57 -0500, Daniel Wagner wrote:
On 2014-01-13 13:45, Michael Witten wrote:
Software:
xmonad 0.11 xmobar 0.10 Xorg 1.14.1
After a while (say, a month) of normal activity, my swap space becomes almost entirely eaten up; the problem can be solved by restarting xmonad (`mod-q').
The problem could well be `xmobar' or `X' itself.
Could you include your config file? Perhaps there's something an experienced Haskeller can spot quickly. Then again perhaps not. In any case I have been using xmonad for several years and have not noticed the problem you describe. ~d
~/.xmonad/xmonad.hs
-------------------
import XMonad
import XMonad.Hooks.DynamicLog
main = xmonad =<< xmobar defaultConfig { modMask = mod4Mask, terminal = "urxvtc" }
~/.xmobarrc
-----------
Config {
font = "xft:DejaVu Sans Mono:size=9"
, bgColor = "black"
, fgColor = "grey"
, position = Top
, lowerOnStart = True
, commands = [ Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
, Run Memory ["-t","Mem: <usedratio>%"] 10
, Run Swap [] 10
, Run Network "eth2" [] 10
, Run Date "%a %Y-%m-%d %H:%M:%S" "date" 10
, Run StdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = "%cpu% | %memory% * %swap% | %eth2% } %StdinReader% {

On 2014-01-15 17:03, Michael Witten wrote:
On Tue, 14 Jan 2014 15:23:57 -0500, Daniel Wagner wrote:
On 2014-01-13 13:45, Michael Witten wrote: After a while (say, a month) of normal activity, my swap space becomes almost entirely eaten up; the problem can be solved by restarting xmonad (`mod-q').
~/.xmonad/xmonad.hs -------------------
import XMonad import XMonad.Hooks.DynamicLog
main = xmonad =<< xmobar defaultConfig { modMask = mod4Mask, terminal = "urxvtc" }
...well, that seems pretty benign. Hard to hide a configuration bug in something that short, so I can see why you think it might be xmonad's fault instead of yours! (And I see from your .xmobarrc that you are also using StdinReader properly, so that's not the problem.) Very strange. ~d

On Wed, 15 Jan, 2014 at 22:03:57 GMT, Michael Witten wrote:
On 2014-01-13 13:45, Michael Witten wrote: xmobar 0.10
Is there a way to update this? 0.19 is out now.
, Run Swap [] 10 , Run Network "eth2" [] 10
I use the others and have no problems, so it may be these two. I'd really try to get a newer xmobar first though. --Ben

Sorry I came late to the thread. If I read correctly you're using xmobar
0.10 - there's a rather goofy memory leak due to the allocation of colors
in xmobar 0.16 and earlier.
So upgrading to a 0.17 or newer xmobar may solve the problem.
xmobar release notes:
http://projects.haskell.org/xmobar/releases.html
regards,
vav aka Wirt Wolff
On Thu, Jan 16, 2014 at 10:18 PM, Ben Boeckel
On Wed, 15 Jan, 2014 at 22:03:57 GMT, Michael Witten wrote:
On 2014-01-13 13:45, Michael Witten wrote: xmobar 0.10
Is there a way to update this? 0.19 is out now.
, Run Swap [] 10 , Run Network "eth2" [] 10
I use the others and have no problems, so it may be these two. I'd really try to get a newer xmobar first though.
--Ben
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

On Sat, 2014-Jan-18, Wirt Wolff wrote:
On Thu, Jan 16, 2014 at 10:18 PM, Ben Boeckel
wrote: On Wed, 15 Jan, 2014 at 22:03:57 GMT, Michael Witten wrote:
On 2014-01-13 13:45, Michael Witten wrote: xmobar 0.10
Is there a way to update this? 0.19 is out now.
, Run Swap [] 10 , Run Network "eth2" [] 10
I use the others and have no problems, so it may be these two. I'd really try to get a newer xmobar first though.
Sorry I came late to the thread. If I read correctly you're using xmobar 0.10 - there's a rather goofy memory leak due to the allocation of colors in xmobar 0.16 and earlier.
So upgrading to a 0.17 or newer xmobar may solve the problem.
xmobar release notes:
Thanks for the heads up! That looks like a promising explanation indeed. I'll upgrade presently, and then let the list know how it goes in a month or so. I thank everybody for taking the time to provide input.

On Sat, Jan 18, 2014 at 3:34 AM, Michael Witten
On Sat, 2014-Jan-18, Wirt Wolff wrote:
...
Sorry I came late to the thread. If I read correctly you're using xmobar 0.10 - there's a rather goofy memory leak due to the allocation of colors in xmobar 0.16 and earlier.
So upgrading to a 0.17 or newer xmobar may solve the problem.
xmobar release notes:
Thanks for the heads up! That looks like a promising explanation indeed.
I'll upgrade presently, and then let the list know how it goes in a month or so.
I thank everybody for taking the time to provide input.
My "tests" got bungled, but basically this seems to have been the problem. Thanks, again.
participants (5)
-
Ben Boeckel
-
Brandon Allbery
-
Daniel Wagner
-
Michael Witten
-
Wirt Wolff