> > > > As I see in my system, around 4 GB of virtual address space is mapped > > to a process. Theoretically, CMIIW, I should be able to use 4GB of > > virtual address space. > > Not really. Assuming your kernel use 3:1 VM split, your address space is > actually 3GB... well not exactly 3GB but you can say so for simplicity. > 1 GB is for kernel space. can we figure out this 3G:1G split from process's address map below? is the mem_init(which gets called from start_kernel) and which has the arch specific implementation does the split? -V > >>From the output from /proc/30563/maps below, there exists a > > significant gap or a hole from vma's end address 00978000 to another > > vma's start address 08048000. Because of these gaps we'll not be able > > utilize complete address space allocated to a process. > > *************************************************************************** > > [bash: /usr2/vskrishn]$ ./test & > > [1] 30563 > > > > ========================================================================== > > [bash: /usr2/vskrishn]$ > > [bash: /usr2/vskrishn]$ cat /proc/30563/maps > > 00835000-0084a000 r-xp 00000000 08:11 385942 /lib/ld-2.3.4.so > > 0084a000-0084b000 r--p 00015000 08:11 385942 /lib/ld-2.3.4.so > > 0084b000-0084c000 rw-p 00016000 08:11 385942 /lib/ld-2.3.4.so > > 0084e000-00972000 r-xp 00000000 08:11 386926 /lib/tls/libc-2.3.4.so > > 00972000-00973000 r--p 00124000 08:11 386926 /lib/tls/libc-2.3.4.so > > 00973000-00976000 rw-p 00125000 08:11 386926 /lib/tls/libc-2.3.4.so > > 00976000-00978000 rw-p 00976000 00:00 0 > > 08048000-08049000 r-xp 00000000 00:1e 2191602 /usr2/vskrishn/test > > 08049000-0804a000 rw-p 00000000 00:1e 2191602 /usr2/vskrishn/test > > b7ff2000-b7ff3000 rw-p b7ff2000 00:00 0 > > bff69000-c0000000 rw-p bff69000 00:00 0 > > ffffe000-fffff000 ---p 00000000 00:00 0 -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ