RE: [PATCH 2/5] vmevent: Convert from deferred timer to deferredwork
From: leonid.moiseichuk
Date: Fri Jun 08 2012 - 04:16:43 EST
> -----Original Message-----
> From: ext Anton Vorontsov [mailto:anton.vorontsov@xxxxxxxxxx]
> Sent: 08 June, 2012 10:59
...
> a) Two more context swtiches;
> b) Serialization/deserialization of /proc/vmstat.
>
> > It also will cause page trashing because user-space code could be pushed
> out from cache if VM decide.
>
> This can solved by moving a "watcher" to a separate (daemon) process, and
> mlocking it. We do this in ulmkd.
Right. It but it has drawbacks as well e.g. ensure that daemon scheduled properly and propagate reaction decision outside ulmkd.
Also I understand your statement about "watcher" as probably you use one timer for daemon.
Btw, in my variant (memnotify.c) I used only one timer, it is enough.
N§²æìr¸yúèØb²X¬¶ÇvØ^)Þ{.nÇ+·¥{±êçzX§¶¡Ü}©²ÆzÚ&j:+v¨¾«êçzZ+Ê+zf£¢·h§~Ûiÿûàz¹®w¥¢¸?¨èÚ&¢)ßfù^jÇy§m
á@A«a¶Úÿ0¶ìh®åi