Re: Why can user virtual addresses sometimes be dereferenced in the kernel?

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

 



> > 
> > You know, I had wondered what use this patchset had other than for
> > folks with 32bit systems straining under userspace limits - this is
> > actually a pretty cool driver diagnostic tool in and of itself :-)
> 
> Wait a second... Separate address spaces for user and kerenl space? That
> means switching page tables on each kernel entry/exit. That means tlb
> flush on each interrupt. That would mean quite a slowdown.
> 

your average intel cpu has 32 TLB entries. 
In practice the slowdown isn't so big, and more or less comparable to
the extra cost that PAE adds in magnitude (somewhere between 5 and 10%)



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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