Re: Zerocopy NBD

2001-05-30 Thread Marcelo Tosatti
On Wed, 30 May 2001, Steve Whitehouse wrote: > Hi, > > > > > On Wed, 30 May 2001, Steve Whitehouse wrote: > > > > [info about NBD patch deleted] > > > > > Cool. > > > > Are you seeing performance improvements with the patch ? > > > > Yes, but my testing is not in anyway complete yet. The

Re: Zerocopy NBD

2001-05-30 Thread Steve Whitehouse
Hi, > > On Wed, 30 May 2001, Steve Whitehouse wrote: > > [info about NBD patch deleted] > > > Cool. > > Are you seeing performance improvements with the patch ? > Yes, but my testing is not in anyway complete yet. The only network device I have which is supported by zerocopy is loopback an

Re: Zerocopy NBD

2001-05-30 Thread Marcelo Tosatti
On Wed, 30 May 2001, Steve Whitehouse wrote: > Hi, > > Attached is a patch I came up with recently to do add zerocopy support to > NBD for writes. I'm not intending that this should go into the kernel > before at least 2.5, I'm just sending it here in case it is useful to anyone. > > I wrote

Re: Zerocopy NBD

2001-05-30 Thread Jens Axboe
On Wed, May 30 2001, Steve Whitehouse wrote: > + if (PageHighMem(page)) > + offset = (int)bh->b_data; > + else > + offset = (int)bh->b_data - (int)page_address(page); Side note: offset = bh_offset(bh); will handle this nicely for you. No need for (nasty)