All of lore.kernel.org
 help / color / mirror / Atom feed
* need for 3G/1G split
@ 2007-03-21  4:15 Rick Brown
  2007-03-21 10:38 ` Vivek
  0 siblings, 1 reply; 5+ messages in thread
From: Rick Brown @ 2007-03-21  4:15 UTC (permalink / raw)
  To: kernelnewbies, linux-newbie

Hi,

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?

TIA,

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: need for 3G/1G split
  2007-03-21  4:15 need for 3G/1G split Rick Brown
@ 2007-03-21 10:38 ` Vivek
  2007-03-22  5:41   ` Sandeep Kumar
  2007-03-22  5:41   ` Prasad Joshi
  0 siblings, 2 replies; 5+ messages in thread
From: Vivek @ 2007-03-21 10:38 UTC (permalink / raw)
  To: Rick Brown; +Cc: kernelnewbies, linux-newbie

> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: need for 3G/1G split
  2007-03-21 10:38 ` Vivek
@ 2007-03-22  5:41   ` Sandeep Kumar
  2007-03-22  5:41   ` Prasad Joshi
  1 sibling, 0 replies; 5+ messages in thread
From: Sandeep Kumar @ 2007-03-22  5:41 UTC (permalink / raw)
  To: vivekutal; +Cc: Rick Brown, kernelnewbies, linux-newbie

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

http://kerneltrap.org/node/2450



On 3/21/07, Vivek <vivekutal@gmail.com> wrote:
> > 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 ecartis@nl.linux.org
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>


-- 
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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: need for 3G/1G split
  2007-03-21 10:38 ` Vivek
  2007-03-22  5:41   ` Sandeep Kumar
@ 2007-03-22  5:41   ` Prasad Joshi
  2007-03-22  6:35     ` Rajat Jain
  1 sibling, 1 reply; 5+ messages in thread
From: Prasad Joshi @ 2007-03-22  5:41 UTC (permalink / raw)
  To: vivekutal; +Cc: Rick Brown, kernelnewbies, linux-newbie

 3/21/07, Vivek <vivekutal@gmail.com> wrote:
> > 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?

>
> --
> Vivek Kutal
>
>
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@nl.linux.org
> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: need for 3G/1G split
  2007-03-22  5:41   ` Prasad Joshi
@ 2007-03-22  6:35     ` Rajat Jain
  0 siblings, 0 replies; 5+ messages in thread
From: Rajat Jain @ 2007-03-22  6:35 UTC (permalink / raw)
  To: Prasad Joshi; +Cc: vivekutal, Rick Brown, kernelnewbies, linux-newbie

On 3/22/07, Prasad Joshi <prasadjoshi124@gmail.com> wrote:
>  3/21/07, Vivek <vivekutal@gmail.com> wrote:
> > > 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?
>

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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-22  6:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21  4:15 need for 3G/1G split Rick Brown
2007-03-21 10:38 ` Vivek
2007-03-22  5:41   ` Sandeep Kumar
2007-03-22  5:41   ` Prasad Joshi
2007-03-22  6:35     ` Rajat Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.