AMD64: 64 bit kernel 32 bit userland - some pending questions
Hello everyone,
I would like to use an AMD64 Opteron System with a 64 bit Linux Kernel, but a 32 bit userland (Debian Sarge). I have a few questions about this:
- Is it possible to give the userland 3Gbyte virtual address space (default for 2.4 and 2.6). But give the Kernel a 64 bit virtual address space so that I get more than 1 Gbyte physical Memory into LOWMEM - say I want 8 Gbyte - without using HIGHMEM at all? If this scenario is possible I would get cheap memory access at the benefit of a well tested userland. I don't have applications that need more than 2 Gbyte virtual address space.
- What is the easiest way to build a 64 bit kernel on a 32 bit Debian sarge. Are there crosscompiler packages available? Are there any guides on this?
- If the above scenario works out like I imagine it, does this add some additional overhead I am not aware of when I switch for example from 32 bit userland to 64 bit kernel space which would override the performance gain I get from the huge LOWMEM virtuall address space?
Thomas
Quoted 3 lines · Thomas Glanzmann
Hello everyone,
I would like to use an AMD64 Opteron System with a 64 bit Linux Kernel, but a 32 bit userland (Debian Sarge). I have a few questions about this:
The main caveat is that iptables and ipsec need 64bit executables to be set up. The rest should work.
Quoted 3 lines
- Is it possible to give the userland 3Gbyte virtual address space (default for 2.4 and 2.6).
The default is 4GB, but you can get 3GB by running it under linux32 --3gb
Quoted 3 lines
But give the Kernel a 64 bit
virtual address space so that I get more than 1 Gbyte physical Memory into LOWMEM - say I want 8 Gbyte - without using HIGHMEM
The 64bit kernel never uses highmem.
Quoted 3 lines
- What is the easiest way to build a 64 bit kernel on a 32 bit Debian sarge. Are there crosscompiler packages available? Are there any guides on this?
If all fails you can get a cross compiler from crosstool. Then normal kernel compilation command with
make ... ARCH=x86_64 CROSS_COMPILE=x86_64-linux-
-Andi
Hello Andi,
Quoted 2 lines
The main caveat is that iptables and ipsec need 64bit executables to be set up. The rest should work.
I see. But that isn't a showstopper for me because I can compile iptables myself and the machines are protected through another firewall anyway.
Quoted 2 lines
The default is 4GB, but you can get 3GB by running it under linux32 --3gb
4 Gbyte is fine for me.
Quoted 1 line
The 64bit kernel never uses highmem.
I see, it wouldn't make any sense.
Quoted 4 lines
If all fails you can get a cross compiler from crosstool. Then normal kernel compilation command with
make ... ARCH=x86_64 CROSS_COMPILE=x86_64-linux-
I see.
Thanks a lot for your feedback,
Thomas
Quoted 8 lines · Andi Kleen
Quoted 3 lines · Thomas Glanzmann
Hello everyone,
I would like to use an AMD64 Opteron System with a 64 bit Linux Kernel, but a 32 bit userland (Debian Sarge). I have a few questions about this:The main caveat is that iptables and ipsec need 64bit executables to be set up. The rest should work.
Recently I've had a problem running wine with a 16-bit windows application on a 64-bit kernel. I guess it's a wine's problem, then?
Greetings,
Rafael
Quoted 7 lines · Rafael J. Wysocki
Quoted 6 lines · Andi Kleen
Quoted 3 lines · Thomas Glanzmann
Hello everyone,
I would like to use an AMD64 Opteron System with a 64 bit Linux Kernel, but a 32 bit userland (Debian Sarge). I have a few questions about this:
Quoted 5 lines
Quoted 2 lines
The main caveat is that iptables and ipsec need 64bit executables to be set up. The rest should work.
Recently I've had a problem running wine with a 16-bit windows application on a 64-bit kernel. I guess it's a wine's problem, then?
At some point it worked - i ran 16bit solitaire and some other programs, but it's not regularly tested. When it works on a 32bit kernel with the same wine version it should work on the 64bit kernel too. If not it's likely a kernel bug.
-Andi
Quoted 11 lines · Andi Kleen
Quoted 10 lines · Rafael J. Wysocki
Quoted 8 lines · Andi Kleen
Quoted 3 lines · Thomas Glanzmann
Hello everyone,
I would like to use an AMD64 Opteron System with a 64 bit Linux Kernel, but a 32 bit userland (Debian Sarge). I have a few questions about this:The main caveat is that iptables and ipsec need 64bit executables to be set up. The rest should work.
Quoted 7 lines
Quoted 2 lines
Recently I've had a problem running wine with a 16-bit windows application on a 64-bit kernel. I guess it's a wine's problem, then?
At some point it worked - i ran 16bit solitaire and some other programs, but it's not regularly tested. When it works on a 32bit kernel with the same wine version it should work on the 64bit kernel too. If not it's likely a kernel bug.
It should work fine.
If not, what is the actual bug/error message? :)
Ciao, Marcus
Quoted 15 lines · Marcus Meissner
Quoted 14 lines · Andi Kleen
Quoted 12 lines · Rafael J. Wysocki
Quoted 8 lines · Andi Kleen
Quoted 3 lines · Thomas Glanzmann
Hello everyone,
I would like to use an AMD64 Opteron System with a 64 bit Linux Kernel, but a 32 bit userland (Debian Sarge). I have a few questions about this:The main caveat is that iptables and ipsec need 64bit executables to be set up. The rest should work.
Recently I've had a problem running wine with a 16-bit windows application on a 64-bit kernel. I guess it's a wine's problem, then?
Quoted 8 lines
Quoted 4 lines
At some point it worked - i ran 16bit solitaire and some other programs, but it's not regularly tested. When it works on a 32bit kernel with the same wine version it should work on the 64bit kernel too. If not it's likely a kernel bug.
It should work fine.
If not, what is the actual bug/error message? :)
Segmentation fault. :-)
I'll try to reproduce it and get some details.
Greetings,
Rafael