But I m interested to know any other way of doing this .... As I don't
know a good way :)
First up.... *****HACK ALERT *****
What if we remove kswapd's task_struct the wait queue it is on while it
is asleep...
from wakeup_kswapd():
if (!waitqueue_active(&zone->zone_pgdat->kswapd_wait))
return;
wake_up_interruptible(&zone->zone_pgdat->kswapd_wait);
So, if the wait queue is empty, waitqueue_active() returns false, which
causes wakeup_kswapd() to do nothing... so this might work!
what say?
Reinforcing.... BADNESS = 1000000. Do *ONLY* for personal joy. :)
ciao
-r
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/