<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=421594510-16092008><FONT face=Arial color=#0000ff size=2>Hello
Doron</FONT></SPAN></DIV>
<DIV><SPAN class=421594510-16092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421594510-16092008><FONT face=Arial color=#0000ff size=2>Why do
you think it will speed up the OS?</FONT></SPAN></DIV>
<DIV><SPAN class=421594510-16092008><FONT face=Arial color=#0000ff size=2>What
do you plan to do until the page is swapped in? Busy loop?</FONT></SPAN></DIV>
<DIV><SPAN class=421594510-16092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421594510-16092008><FONT face=Arial color=#0000ff size=2>About
your solution:</FONT></SPAN></DIV>
<DIV><SPAN class=421594510-16092008>handle_mm_fault is called from within page
fault handler (<A class=sref
href="http://lxr.linux.no/linux+v2.6.26.5/+code=do_page_fault">do_page_fault</A>()).</SPAN></DIV>
<DIV><SPAN class=421594510-16092008>So what is the rational behind calling <SPAN
class=421594510-16092008>handle_mm_fault not from inside pagefault
handler?</SPAN></SPAN></DIV>
<DIV><SPAN class=421594510-16092008><SPAN class=421594510-16092008>Where would
you call it from instead and what do you plan to do when you are in the page
fault?</SPAN></SPAN></DIV>
<DIV><SPAN class=421594510-16092008><SPAN class=421594510-16092008><FONT
face=Arial color=#0000ff size=2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=421594510-16092008><SPAN class=421594510-16092008><FONT
face=Arial color=#0000ff size=2>Probably what you meant is, in order not to do
context switch due to page fault, is to call <SPAN
class=421594510-16092008><FONT face="Times New Roman" color=#000000
size=3>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.</FONT></SPAN></FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=421594510-16092008><SPAN class=421594510-16092008><FONT
face=Arial color=#0000ff size=2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN class=421594510-16092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421594510-16092008><FONT face=Arial color=#0000ff
size=2>Gabi</FONT></SPAN></DIV>
<DIV><SPAN class=421594510-16092008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=421594510-16092008> </SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> haifux-bounces@haifux.org
[mailto:haifux-bounces@haifux.org] <B>On Behalf Of </B>Doron
Zuckerman<BR><B>Sent:</B> Tuesday, September 16, 2008 12:31 PM<BR><B>To:</B>
haifux@haifux.org<BR><B>Cc:</B> Ronen Gruengras<BR><B>Subject:</B> [Haifux] SSD
and linux<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>Hi all,<BR><BR>I have a question regarding the linux kernel (for
those of you who are familiar with it).<BR><BR>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.<BR>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 <BR>and will wait
for the required page to be brought from the SSD (Solid State Drive), then
continue as usual.<BR>In Such way, I plan to check if I can fasten the speed of
the Operating System (Ubuntu for EEE).<BR>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 <BR>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 <BR>pagefault at
the moment.<BR>Can you suggest any other solution possible or tell me what you
think about this solution.<BR><BR>I would really appreciate any help with
this,<BR>Doron.<BR><BR><BR></DIV></BODY></HTML>