Skip to contentSkip to conversation

need for 3G/1G split

DISCUSSION Rick Brown 5 participants 5 messages Mar 21, 2007 – Mar 22, 2007

lore
Share & tools
lore
#1 lore raw
Quoted 3 lines

Why is kernel restricted to use virtual addresses of only 1 GB? Or what is the need to split up the virtual address space into user addresses and kernel addresses?

We can have 4GB for kernel and 4GB for userspace but this has a overhead of flushing of tlb for every syscall.
You can also make the split 2/2GB but this has a problem of having less user address space.
3/1 is a better choice.

--
Vivek Kutal

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw

Also, go through the following article, they have explained things in a very nice way.

http://kerneltrap.org/node/2450

Quoted 21 lines · Vivek
Quoted 3 lines

Why is kernel restricted to use virtual addresses of only 1 GB? Or what is the need to split up the virtual address space into user addresses and kernel addresses?

We can have 4GB for kernel and 4GB for userspace but this has a overhead of flushing of tlb for every syscall.
You can also make the split 2/2GB but this has a problem of having less user address space.
3/1 is a better choice.

--
Vivek Kutal

--
To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [email protected] Please read the FAQ at http://kernelnewbies.org/FAQ

Signature · 14 lines
Regards,
Sandeep





	
If the facts don't fit the theory, change the facts.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#3 lore raw
In reply to Vivek
Quoted 9 lines · Vivek
Quoted 3 lines

Why is kernel restricted to use virtual addresses of only 1 GB? Or what is the need to split up the virtual address space into user addresses and kernel addresses?

We can have 4GB for kernel and 4GB for userspace but this has a overhead of flushing of tlb for every syscall.
You can also make the split 2/2GB but this has a problem of having less user address space.
3/1 is a better choice.

Does TLB size change 4, 3, or 2 GB virtual addresses are used? I though it would be same irrespective of whether virtual addresses are 4 or 1 GB.
If the TLB size is at all same for any number of virtual addresses then what difference it make while flushing the TLB?

Quoted 6 lines

--
Vivek Kutal

Quoted 6 lines

--
To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [email protected] Please read the FAQ at http://kernelnewbies.org/FAQ

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#4 lore raw
Quoted 11 lines · Prasad Joshi
Quoted 9 lines · Vivek
Quoted 3 lines

Why is kernel restricted to use virtual addresses of only 1 GB? Or what is the need to split up the virtual address space into user addresses and kernel addresses?

We can have 4GB for kernel and 4GB for userspace but this has a overhead of flushing of tlb for every syscall.
You can also make the split 2/2GB but this has a problem of having less user address space.
3/1 is a better choice.

Quoted 6 lines

Does TLB size change 4, 3, or 2 GB virtual addresses are used? I though it would be same irrespective of whether virtual addresses are 4 or 1 GB.
If the TLB size is at all same for any number of virtual addresses then what difference it make while flushing the TLB?

The difference is that the TLB needs not be flushed for the kernel virtual addresses because it remains the same for each processes. The bigger the kernel virtual address space the better it is (but lesser virtual memory for user space).
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs