[Nfs-ganesha-devel] READDIR readahead

2017-04-03 Thread Frank Filz
Matt had asked for an ability for readdir chunking to be able to absorb more
than one chunks worth of entries if it made sense for the FSAL to read a
larger number of entries in one go.

It turns out that it was very simple to support this.

And for gravy, there's an example of FSAL_VFS which increases the getdents
buffer size and supports readahead.

Along the way, I also realized there was a bug in FSAL_RGW...

It may be worth asking if we should make the FSAL_VFS readdir buffer
resizable and allow enabling readahead.

You can find it in my readahead branch:

https://github.com/ffilz/nfs-ganesha/commits/readahead

Or review on gerrithub:

https://review.gerrithub.io/#/c/32/
https://review.gerrithub.io/#/c/355563/
https://review.gerrithub.io/#/c/355564/
https://review.gerrithub.io/#/c/355565/

You can also pull the whole branch from gerrithub with this command (which
will create and checkout a branch called readahead in your repo):

git fetch https://ff...@review.gerrithub.io/a/ffilz/nfs-ganesha
refs/changes/65/355565/1 && git checkout FETCH_HEAD -b readahead

This last is taken from the download menu in the final patch, you chose the
checkout option, cut and paste that. I always add the -b {branchname} to the
end of it to actually checkout a branch. This can be used to pull down
anyone's patch set even if they don't have a github repo (or you don't know
what it is, or they didn't push to it). I use this all the time for doing
weekly merges if someone has a patchset with more than 2 or 3 patches.

Thanks

Frank


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel


Re: [Nfs-ganesha-devel] READDIR readahead

2017-04-03 Thread Matt Benjamin
Thanks, Frank, will explore w/RGW.

Matt

- Original Message -
> From: "Frank Filz" 
> To: nfs-ganesha-devel@lists.sourceforge.net
> Sent: Monday, April 3, 2017 6:56:45 PM
> Subject: [Nfs-ganesha-devel] READDIR readahead
> 
> Matt had asked for an ability for readdir chunking to be able to absorb more
> than one chunks worth of entries if it made sense for the FSAL to read a
> larger number of entries in one go.
> 
> It turns out that it was very simple to support this.
> 
> And for gravy, there's an example of FSAL_VFS which increases the getdents
> buffer size and supports readahead.
> 
> Along the way, I also realized there was a bug in FSAL_RGW...
> 
> It may be worth asking if we should make the FSAL_VFS readdir buffer
> resizable and allow enabling readahead.
> 
> You can find it in my readahead branch:
> 
> https://github.com/ffilz/nfs-ganesha/commits/readahead
> 
> Or review on gerrithub:
> 
> https://review.gerrithub.io/#/c/32/
> https://review.gerrithub.io/#/c/355563/
> https://review.gerrithub.io/#/c/355564/
> https://review.gerrithub.io/#/c/355565/
> 
> You can also pull the whole branch from gerrithub with this command (which
> will create and checkout a branch called readahead in your repo):
> 
> git fetch https://ff...@review.gerrithub.io/a/ffilz/nfs-ganesha
> refs/changes/65/355565/1 && git checkout FETCH_HEAD -b readahead
> 
> This last is taken from the download menu in the final patch, you chose the
> checkout option, cut and paste that. I always add the -b {branchname} to the
> end of it to actually checkout a branch. This can be used to pull down
> anyone's patch set even if they don't have a github repo (or you don't know
> what it is, or they didn't push to it). I use this all the time for doing
> weekly merges if someone has a patchset with more than 2 or 3 patches.
> 
> Thanks
> 
> Frank
> 
> 
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Nfs-ganesha-devel mailing list
> Nfs-ganesha-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel
> 

-- 
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-821-5101
fax.  734-769-8938
cel.  734-216-5309

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel


Re: [Nfs-ganesha-devel] READDIR readahead

2017-04-03 Thread Matt Benjamin
inline

- Original Message -
> From: "Frank Filz" 
> To: nfs-ganesha-devel@lists.sourceforge.net
> Sent: Monday, April 3, 2017 6:56:45 PM
> Subject: [Nfs-ganesha-devel] READDIR readahead
> 

Not a bug, really, I had not actually implemented the stop conditions, pending 
further changes.  Need to plumb them back into librgw, too, I'm pretty 
sure--thanks for updating here, though.

Thanks!

Matt

> Along the way, I also realized there was a bug in FSAL_RGW...
> 

> 

-- 
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-821-5101
fax.  734-769-8938
cel.  734-216-5309

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel