Re: Kernel thread stack size

2012-07-24 Thread Paul Ambrose
Could you be more specific about "inefficient"? 在 2012-7-25 上午11:22,"Warner Losh" 写道: > > > On Jul 24, 2012, at 6:40 PM, Paul Ambrose wrote: > > > #define PAGE_SHIFT 12 > > #define PAGE_SIZE (1< > > > #define KSTACK_PAGES 2 > > #define KSTACK_GUARD_PAGES 2 > > > > I had a MIPS machine (Loongson 3A

Re: Kernel thread stack size

2012-07-24 Thread Warner Losh
On Jul 24, 2012, at 6:40 PM, Paul Ambrose wrote: > #define PAGE_SHIFT 12 > #define PAGE_SIZE (1< > #define KSTACK_PAGES 2 > #define KSTACK_GUARD_PAGES 2 > > I had a MIPS machine (Loongson 3A) with page size 16KB( could be 4KB, but > had to handle cache alias in OS), IMHO, define KSTACK_PAGE t

Re: Kernel thread stack size

2012-07-24 Thread Paul Ambrose
#define PAGE_SHIFT 12 #define PAGE_SIZE (1< > On Mon, Jul 23, 2012 at 02:54:30AM -0400, Richard Yao wrote: > > What is the default kernel thread stack size on FreeBSD? I am > > particularly interested in knowing about i386 and amd64, but knowing > > this for other architectures (such as MIPS) wou

Re: Kernel thread stack size

2012-07-23 Thread Konstantin Belousov
On Mon, Jul 23, 2012 at 02:54:30AM -0400, Richard Yao wrote: > What is the default kernel thread stack size on FreeBSD? I am > particularly interested in knowing about i386 and amd64, but knowing > this for other architectures (such as MIPS) would also be useful. > Look for the KSTACK_PAGES symbo