
Hi I made a program that detects user presence in a linux box by checking for keyboard interruptions in /proc/interrupts. Problem is, it is supposed to run for a long time, and it keeps about 40MB for itself. Yeah, this is one more "help me with this memory problem" mails... The code can be found in http://hpaste.org/1907, and in "darcs get http://lpenz.50webs.com/idlelog I guess I'm having some conceptual problem. Cheers Leandro Penz

lpenz:
Hi
I made a program that detects user presence in a linux box by checking for keyboard interruptions in /proc/interrupts.
Problem is, it is supposed to run for a long time, and it keeps about 40MB for itself.
Yeah, this is one more "help me with this memory problem" mails...
The code can be found in http://hpaste.org/1907, and in "darcs get http://lpenz.50webs.com/idlelog
I guess I'm having some conceptual problem.
I'd seriously consider using Data.ByteString instead of [Char] string for your IO. -- Don
participants (2)
-
dons@cse.unsw.edu.au
-
Leandro Lisboa Penz