Re: Gracefully killing kswapd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/8/05, Rahul Iyer <idlisambar@xxxxxxxxx> wrote:
> 
> >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?
> 

Ya, that seems valid to me to be done and this makes kswapd do thing,
but the main thing this mail thread creator wants to know and me too
is how to replace the kswapd with our own thread not by hacking in the
kernel !!!

-- 
Fawad Lateef

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux