|
Prev: R6031
Next: How to limit the memory of a process?
From: Sue on 27 Jun 2008 18:49 Hi, I'd like to ask a dummy question. For window NT, what is the beginning and ending of the user mode address and kernel mode address? And what's the stack size? Thanks. Sue
From: Kerem Gümrükcü on 27 Jun 2008 20:13 Hi Sue, >I'd like to ask a dummy question. For window NT, what is the >beginning and ending of the user mode address and kernel mode address? >And what's the stack size? Thanks. See here: [Virtual Address Space] http://msdn.microsoft.com/en-us/library/aa366912(VS.85).aspx They differ in size/width depending on the processor architecutre, read further and do a google search for more information,... Also take care of things like ASLR http://en.wikipedia.org/wiki/Address_space_layout_randomization Hope this helps,... Regards Kerem -- ----------------------- Beste Gr�sse / Best regards / Votre bien devoue Kerem G�mr�kc� Latest Project: http://www.codeplex.com/restarts Latest Open-Source Projects: http://entwicklung.junetz.de ----------------------- "This reply is provided as is, without warranty express or implied." "Sue" <jean.shu(a)gmail.com> schrieb im Newsbeitrag news:51b78cbf-5980-443f-b2ff-02460b76f8b5(a)m73g2000hsh.googlegroups.com... > Hi, > > I'd like to ask a dummy question. For window NT, what is the > beginning and ending of the user mode address and kernel mode address? > And what's the stack size? Thanks. > > Sue
From: Tim Roberts on 28 Jun 2008 01:37 Sue <jean.shu(a)gmail.com> wrote: > >I'd like to ask a dummy question. For window NT, what is the >beginning and ending of the user mode address and kernel mode address? >And what's the stack size? Thanks. Kerem gave you a pointer to the first question. For the second, the initial stack size for a process comes from the header of the executable file. You can set your desired size as a linker parameter. The default is 1 MB. -- Tim Roberts, timr(a)probo.com Providenza & Boekelheide, Inc.
From: Volodymyr M. Shcherbyna on 28 Jun 2008 05:07 As OP also asks the question about the kernel, I guess it is worth to tell that the kernel stack size is small and it is equal: 1. On x86 machines to 12 kb 2. On x64 machines to 24 kb 3. On Itaium machines to 32 kb -- Volodymyr, blog: http://www.shcherbyna.com/ (This posting is provided "AS IS" with no warranties, and confers no rights) "Tim Roberts" <timr(a)probo.com> wrote in message news:1ajb6459opt4c0hm61vrfd0ndue0i7e0oi(a)4ax.com... > Sue <jean.shu(a)gmail.com> wrote: >> >>I'd like to ask a dummy question. For window NT, what is the >>beginning and ending of the user mode address and kernel mode address? >>And what's the stack size? Thanks. > > Kerem gave you a pointer to the first question. For the second, the > initial stack size for a process comes from the header of the executable > file. You can set your desired size as a linker parameter. The default > is > 1 MB. > -- > Tim Roberts, timr(a)probo.com > Providenza & Boekelheide, Inc.
From: Ondrej Spanel on 30 Jun 2008 08:47 One thing which is easy to miss: there are two stacksizes - Committed and Reserved. Stack can auto-grow the committed size as needed, but you can never go over the reserved size. Another important thing is threads are per-thread, therefore you need to think about both those properties for each thread. More at http://msdn.microsoft.com/en-us/library/ms686774(VS.85).aspx Ondrej > Sue <jean.shu(a)gmail.com> wrote: >> I'd like to ask a dummy question. For window NT, what is the >> beginning and ending of the user mode address and kernel mode address? >> And what's the stack size? Thanks. > > Kerem gave you a pointer to the first question. For the second, the > initial stack size for a process comes from the header of the executable > file. You can set your desired size as a linker parameter. The default is > 1 MB.
|
Pages: 1 Prev: R6031 Next: How to limit the memory of a process? |