login
Header Space

 
 

Re: [ANNOUNCE] System Inactivity Monitor v1.0

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pavel Machek <pavel@...>
Cc: Vojtech Pavlik <vojtech@...>, <linux-kernel@...>
Date: Monday, January 29, 2007 - 6:42 pm

Pavel Machek <pavel@ucw.cz> writes:

   Hi!

   >    The /proc/bus/input/devices has an extensible structure. You can just
   >    add an "A:" line (for Activity) instead of adding a new proc file.
   > 
   > I know, but IMO there is too much stuff to parse in there. Activity counters
   > are frequently accessed by daemons, and four or five concurrent daemons are the
   > norm in a typical X11 linux box...

   Syscalls are fast enough, and the file is _very_ easy (=> fast) to parse.

   >    Also, the activity counters should IMO coincide with the event times
   >    passed through /dev/input/event, and should not be jiffies based.
   >    Ideally, both should be based on clock_gettime(CLOCK_MONOTONIC).
   > 
   > In evdev.c do_gettimeofday() is used. Anyway I just need of a monotonic
   > counter, so get_jiffies_64() wouldn't be better? It isn't affected by wrapping
   > issues and it is probably faster than do_gtod().

   Just use same time source rest of inputs already do...

OK, but what about the time-warp problem?. To fix it I need to know when the
system goes to sleep/resumes. In SIN I've solved via the platform driver,
introducing suspend() resume() callbacks...

greets,

-- 
Technology is dominated by two types of people: those who understand what they
do not manage, and those who manage what they do not understand. - Putt's Law
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [ANNOUNCE] System Inactivity Monitor v1.0, Alessandro Di Marco, (Mon Jan 29, 9:58 am)
Re: [ANNOUNCE] System Inactivity Monitor v1.0, Pavel Machek, (Mon Jan 29, 6:28 pm)
Re: [ANNOUNCE] System Inactivity Monitor v1.0, Alessandro Di Marco, (Mon Jan 29, 6:42 pm)
Re: [ANNOUNCE] System Inactivity Monitor v1.0, Vojtech Pavlik, (Tue Jan 30, 5:42 am)
Re: [ANNOUNCE] System Inactivity Monitor v1.0, Alessandro Di Marco, (Tue Jan 30, 8:33 am)
Re: [ANNOUNCE] System Inactivity Monitor v1.0, Vojtech Pavlik, (Tue Jan 30, 9:09 am)
Re: [ANNOUNCE] System Inactivity Monitor v1.0, Pavel Machek, (Mon Jan 29, 8:03 pm)
speck-geostationary