uml: problem with 2G/2G host address space
PATCH 1/1 uml: problem with 2G/2G host address space
Hello,
I believe the current version (2.6.16.2) of UML does not work properly on a i386 host with non-3G/1G address space split. The included patch attempts to fix this.
On a i386 2.6.16.2 host configured with "3G/1G user/kernel split for full 1G low memory" (VMSPLIT_3G_OPT), I found that UML would crash on boot with the following error message:
mapping mmap stub failed, errno = 12
It soon made sense to me that a 3G/1G configured UML would crash like this, but I then found that UML 2.6.16.2 configured for 2G/2G crashed in exactly the same way. I think this is due to the fact that STUB_CODE and STUB_DATA are fixed at the 3G/1G settings. After changing these settings, everything seems to work properly in 2G/2G mode.
Bye,
Joris.
arch/um/Kconfig.i386 +4 -2
@@ -33,15 +33,17 @@ However, this it experimental on 32-bit architectures, so if unsure say N (on x86-64 it's automatically enabled, instead, as it's safe there). config STUB_CODE hex - default 0xbfffe000 + default 0xbfffe000 if !HOST_2G_2G + default 0x7fffe000 if HOST_2G_2G config STUB_DATA hex - default 0xbffff000 + default 0xbffff000 if !HOST_2G_2G + default 0x7ffff000 if HOST_2G_2G config STUB_START hex default STUB_CODE
--
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 5 lines · Joris van Rantwijk
It soon made sense to me that a 3G/1G configured UML would crash like this, but I then found that UML 2.6.16.2 configured for 2G/2G crashed in exactly the same way. I think this is due to the fact that
STUB_CODEandSTUB_DATAare fixed at the 3G/1G settings. After changing these settings, everything seems to work properly in 2G/2G mode.
Your analysis is correct, and the patch is fine as far as it goes, but we were talking about this a week or so ago about detecting the host address space split at runtime. There's a lot more potential flexibility there than just 3/1 and 2/2.
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 11 lines · Jeff Dike
Quoted 5 lines · Joris van Rantwijk
It soon made sense to me that a 3G/1G configured UML would crash like this, but I then found that UML 2.6.16.2 configured for 2G/2G crashed in exactly the same way. I think this is due to the fact that
STUB_CODEandSTUB_DATAare fixed at the 3G/1G settings. After changing these settings, everything seems to work properly in 2G/2G mode.Your analysis is correct, and the patch is fine as far as it goes, but we were talking about this a week or so ago about detecting the host address space split at runtime. There's a lot more potential flexibility there than just 3/1 and 2/2.
Jeff, for now please merge a band-aid patch (and also add an option to support 1G/3G, while at it).
Delaying the band-aid only makes sense when you've got the proper fix reaching completion or when the band-aid is clearly an hack and hinders maintenability in a relevant way - we don't want to keep these configurations "unsupported".
Signature · 24 lines
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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines · Blaisorblade
Jeff, for now please merge a band-aid patch (and also add an option to support 1G/3G, while at it).
OK, do you have such a patch handy? I know I saw one go by, but some grepping didn't turn it up.
Jeff
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines · Jeff Dike
OK, do you have such a patch handy? I know I saw one go by, but some grepping didn't turn it up.
Nevermind, I found it - it was the start of this thread.
Jeff
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel