Re: Revisiting uvm_loan() for 'direct' write pipes

2018-05-26 Thread Thor Lancelot Simon
On Fri, May 25, 2018 at 10:01:15PM +0200, Jarom??r Dole??ek wrote: > 2018-05-21 21:49 GMT+02:00 Jarom??r Dole??ek : > > It turned out uvm_loan() incurs most of the overhead. I'm still on my > > way to figure what it is exactly which makes it so much slower than > >

Re: Ambient light sensors in envsys

2018-05-26 Thread Michael
Hello, On Sun, 20 May 2018 05:04:53 + m...@netbsd.org wrote: > As extra motivation, > > 3- some laptops have ambient light sensors for the purpose of adjusting > brightness/keyboard backlight automatically > > So certainly would be good to have :-) One /could/ abuse the shitty USB cameras

Re: Revisiting uvm_loan() for 'direct' write pipes

2018-05-26 Thread Jason Thorpe
> On May 25, 2018, at 1:01 PM, Jaromír Doleček > wrote: > > So, I'm actually thinking to change uvm_loan() to not enforce R/O > mappings and leave page attributes without change. It would require > the caller to deal with possible COW or PG_RDONLY if they need to do

Re: Revisiting uvm_loan() for 'direct' write pipes

2018-05-26 Thread Jason Thorpe
> On May 21, 2018, at 12:49 PM, Jaromír Doleček > wrote: > > Mostly since I want to > have at least one other consumer of the interface before I consider it > as final, to make sure it covers the general use cases. BTW, I was thinking about this, and I think you