[Haifux] SSD and linux
gabik
gabik at cs.technion.ac.il
Tue Sep 16 15:42:09 MSD 2008
Hello Doron
Why do you think it will speed up the OS?
What do you plan to do until the page is swapped in? Busy loop?
About your solution:
handle_mm_fault is called from within page fault handler (do_page_fault
<http://lxr.linux.no/linux+v2.6.26.5/+code=do_page_fault> ()).
So what is the rational behind calling handle_mm_fault not from inside
pagefault handler?
Where would you call it from instead and what do you plan to do when you are
in the page fault?
Probably what you meant is, in order not to do context switch due to page
fault, is to call handle_mm_fault as usual, but not to raise need_resched
flag, so as not to trigger a context switch in case of a major page fault.
Gabi
_____
From: haifux-bounces at haifux.org [mailto:haifux-bounces at haifux.org] On Behalf
Of Doron Zuckerman
Sent: Tuesday, September 16, 2008 12:31 PM
To: haifux at haifux.org
Cc: Ronen Gruengras
Subject: [Haifux] SSD and linux
Hi all,
I have a question regarding the linux kernel (for those of you who are
familiar with it).
I'm looking for a way to add a change to the linux kernel in order to check
if I can make it more compatible with my Asus EEE-PC.
I would like to change the kernel in such way that it will not do a context
switch every time there is a page fault
and will wait for the required page to be brought from the SSD (Solid State
Drive), then continue as usual.
In Such way, I plan to check if I can fasten the speed of the Operating
System (Ubuntu for EEE).
I thought of adding a TIF flag in the process descriptor (thread_info_32.h)
that will tell me if I'm currently in a pagefault and
then change the fault_32.c in such way that it will do the
"handle_mm_fault(mm,vma, address, write_;" only if there is no
pagefault at the moment.
Can you suggest any other solution possible or tell me what you think about
this solution.
I would really appreciate any help with this,
Doron.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://haifux.org/pipermail/haifux/attachments/20080916/490ee3db/attachment.html
More information about the Haifux
mailing list