Re: Calling sys_sysinfo from sched.c

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

 



On Mon, 2 May 2005, A.M. Fradley wrote:

> OK, what I've done so far is at the bottom of do_swap_page (one of the 
> functions in handle_pte_fault) I've put if (ret == VM_FAULT_MAJOR) 
> tLastSwap = jiffies / HZ;

No need to divide it by HZ, you can just use jiffies directly.

> Then I could somehow get it to activate and deactivate the tokening 
> according to the info of the swap rate that is gained at those points.  
> Does that sound like it would work?

Sounds like it should work.

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

--
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