[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmonad
Subject:    Re: [xmonad] xmonad and launcher prompt memory
From:       Carlos_López_Camey <c.lopez () kmels ! net>
Date:       2012-09-19 12:43:52
Message-ID: CAMSgvC+6kaKacmoA15GBE94RWkc7+4Jt8BnGUvmwhF6pNJW-sA () mail ! gmail ! com
[Download RAW message or body]

Hello Carsten,

After I started the launcher prompt and did some queries, the resident
memory shown in `top` went from 5620 bytes in a restarted xmonad to
6440 bytes. After doing more queries it stopped at 7280 bytes.

I observed the same behavior with the shell prompt (Prompt.Shell), but
I am not sure if it is due to the new patch. Could someone that
doesn't have the patch applied that a look?

If the new patch is the reason, the guilty data type might be
XPOperationMode in XPState:

> data XPOperationMode = XPSingleMode ComplFunction XPType | XPMultipleModes (W.Stack XPType)

where

> data XPType = forall p . XPrompt p => XPT p
> type ComplFunction = String -> IO [String]

I am not sure what should I do to get the XPState garbage collected
when a window prompt is destroyed. Help?

cheers

2012/9/19 Carsten Mattner <carstenmattner@gmail.com>:
> Carlos,
>
> I'm wondering whether using the launcher prompt may be the reason
> for xmonad starting at 4 to 5 megs freshly and climbing to around 7 megs.
> I didn't try without the launcher promot and don't really complain but
> am curious whether there's some caching and possible space leak
> in either the launcher prompt or xmonad core or one of the popular
> action hooks.
>
> Gwern, this is not an objection to merging, just an observation.
>
> This is on ghc-7.6.1-i386.
>
> Any comments?

_______________________________________________
xmonad mailing list
xmonad@haskell.org
http://www.haskell.org/mailman/listinfo/xmonad
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic