Talking about 32-bit UMLs on AMD64 hosts: I've just discovered that on a 
x86_64 platform you can use at least partially the SKAS3 patch.

Instead of adding "skas0" to the command line, to get a running UML it 
suffices to use "noprocmm", if it's accepted by UML (I don't remember when 
the patch was merged).

I've tested this with a Debian Sarge root_fs - as you already know, Slackware 
root_fs already work in full SKAS3 mode.

As you can see at the beginning of the boot log, it won't use /proc/mm but it 
will use PTRACE_FAULTINFO, which is the other part of SKAS3. Since this 
addresses the biggest slowdown of SKAS0 (Jeff said SKAS0 is slightly slower 
than TT for page fault handling), I expect the difference to be significant.

I've not done any benchmark yet, however.

Example startup:

$ kernels/vmlinux-2.6.15.3-bs2 
ubd0=Root_images/Sarge-norm.rootfs.cow,Root_images/Sarge-norm.rootfs 
rootfs=/dev/ubda noprocmm

Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
Checking PROT_EXEC mmap in /tmp...OK
Checking for the skas3 patch in the host:
  - /proc/mm...found but disabled on command line
  - PTRACE_FAULTINFO...found
  - PTRACE_LDT...found
UML running in SKAS0 mode
....
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

        

        
                
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to