Re: 2 page kernel stacks in older kernels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,Joel:
 
There is an explaination about the stack pages from two pages to one page in 2.6 kernel
in Robert Love's book <<Linux Kernel Development >>(2nd Edition).
 
Before kernel 2.6,the process kernel stack and interrupt handler share the common stack.
so there is two pages for process kernel stack.and the pages in kernel mode is physical memory,not virtual.
so the two pages must be physically continuous.
Well,as you know.as system runs.it is harder for kernel to allocate two continuous pages than one page.
so 2.6 kernel use one page for process kernel stack instead.
and there is a one page stack for interrupt handler for each processor on SMP.
 
may this will help you:)
On Sat, Dec 12, 2009 at 5:48 PM, Joel Fernandes <agnel.joel@xxxxxxxxx> wrote:
There was a requirement in older kernels that the stack (which was
then 2 pages and is now 1 page in newer kernels) had to be physically
adjacent.
Why was there such a requirement? wouldn't it have sufficed for the
kernel stack to be contiguous in virtual memory?

Thanks,
-Joel

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux