Re: PAGE_SIZE on 64bit and 32bit machines

2007-11-13 Thread Helge Hafting
Yoav Artzi wrote: According to my knowledge the PAGE_SIZE on 32bit architectures in 4KB. Logically, the PAGE_SIZE on 64bit architectures should be 8KB. That's at least the way I understand it. However, looking at the kernel code of x86_64, I see the PAGE_SIZE is 4KB. Can anyone explain to me

Re: PAGE_SIZE on 64bit and 32bit machines

2007-11-12 Thread Chris Snook
Yoav Artzi wrote: According to my knowledge the PAGE_SIZE on 32bit architectures in 4KB. Logically, the PAGE_SIZE on 64bit architectures should be 8KB. That's at least the way I understand it. However, looking at the kernel code of x86_64, I see the PAGE_SIZE is 4KB. Can anyone explain to me

Re: PAGE_SIZE on 64bit and 32bit machines

2007-11-12 Thread Kyle McMartin
On Mon, Nov 12, 2007 at 05:58:08PM +0200, Yoav Artzi wrote: > Looking at the source, I see: > > #ifdef CONFIG_4KSTACKS > #define THREAD_SIZE(4096) > #else > #define THREAD_SIZE(8192) > #endif > > > So if I configure the option CONFIG_4KSTACK, I will get a 4KB kernel > stack.

Re: PAGE_SIZE on 64bit and 32bit machines

2007-11-12 Thread Yoav Artzi
I see. Thanks, guys. Original Message Subject: Re: PAGE_SIZE on 64bit and 32bit machines From: Kyle McMartin <[EMAIL PROTECTED]> To: Yoav Artzi <[EMAIL PROTECTED]> Date: Monday, November 12, 2007 6:11:06 PM On Mon, Nov 12, 2007 at 05:58:08PM +0200, Yoav

Re: PAGE_SIZE on 64bit and 32bit machines

2007-11-12 Thread Jiri Slaby
On 11/12/2007 04:58 PM, Yoav Artzi wrote: > Looking at the source, I see: > > #ifdef CONFIG_4KSTACKS > #define THREAD_SIZE(4096) > #else > #define THREAD_SIZE(8192) > #endif > > > So if I configure the option CONFIG_4KSTACK, I will get a 4KB kernel > stack. Am I missing somet

Re: PAGE_SIZE on 64bit and 32bit machines

2007-11-12 Thread Yoav Artzi
: Re: PAGE_SIZE on 64bit and 32bit machines From: Adrian Bunk <[EMAIL PROTECTED]> To: Yoav Artzi <[EMAIL PROTECTED]> Date: Monday, November 12, 2007 5:39:08 PM On Mon, Nov 12, 2007 at 05:32:36PM +0200, Yoav Artzi wrote: Well, since the size of the kernel stack is one page, ...

Re: PAGE_SIZE on 64bit and 32bit machines

2007-11-12 Thread Adrian Bunk
On Mon, Nov 12, 2007 at 05:32:36PM +0200, Yoav Artzi wrote: > Well, since the size of the kernel stack is one page, >... That's not true. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days.

Re: PAGE_SIZE on 64bit and 32bit machines

2007-11-12 Thread Yoav Artzi
. Isn't it? I know that using one page for a kernel stack is a optional feature, but: a) It's a good feature b) It's already used by major distros, e.g. Red Hat Original Message Subject: Re: PAGE_SIZE on 64bit and 32bit machines From: Jiri Slaby <[EMAIL PR

Re: PAGE_SIZE on 64bit and 32bit machines

2007-11-12 Thread Jiri Slaby
On 11/12/2007 03:39 PM, Yoav Artzi wrote: > According to my knowledge the PAGE_SIZE on 32bit architectures in 4KB. > Logically, the PAGE_SIZE on 64bit architectures should be 8KB. That's at > least the way I understand it. However, looking at the kernel code of > x86_64, I see the PAGE_SIZE is 4KB.

PAGE_SIZE on 64bit and 32bit machines

2007-11-12 Thread Yoav Artzi
According to my knowledge the PAGE_SIZE on 32bit architectures in 4KB. Logically, the PAGE_SIZE on 64bit architectures should be 8KB. That's at least the way I understand it. However, looking at the kernel code of x86_64, I see the PAGE_SIZE is 4KB. Can anyone explain to me what am I missing