bugfindutils - Bugs: bug #32447, Wishlist: fadvise()


bug #32447: Wishlist: fadvise()

Submitter:  Alan Brown <stoatwblr>
Submitted:  Sun 13 Feb 2011 03:38:16 AM UTC
Category:  find Severity:  1 - Wish
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  jay
Originator Name:  Alan Brown Open/Closed:  Closed
Release:  None Fixed Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


( Jump to the original submission )

Sun 01 Sep 2019 08:54:11 AM UTC, comment #6: 

No response from Alan (the original reporter of the bug).  Hence, closing.

James Youngman <jay>
Project Administrator
Tue 24 Sep 2013 10:14:05 PM UTC, comment #5: 

Alan, how did you measure the page cache poisoning?

James Youngman <jay>
Project Administrator
Sat 14 May 2011 11:47:19 PM UTC, comment #4: 

I see that there's no mention of this request on the gnulib mailing list by Alan yet and no further comment from Alan here.     Alan, are you still thinking about this, or are you planning to bring this topic up with the gnulib developers?

James Youngman <jay>
Project Administrator
Sat 02 Apr 2011 05:09:41 PM UTC, comment #3: 

It looks to me as if, in order to do this, you would need to update the implementation of opendirat() in gnulib's file lib/fts.c.

Unfortunately, it's not a given that fts() will always need to be restrained in terms of its effect on the page cache.   So, I don't know what the developers will say.    But, best to start by asking them at bug-gnulib@gnu.org.

James Youngman <jay>
Project Administrator
Tue 15 Feb 2011 04:28:35 PM UTC, comment #2: 

Yes, I know it's a no-op, but POSIX_FADV_NONEED is not.

Alan Brown <stoatwblr>
Tue 15 Feb 2011 11:48:58 AM UTC, comment #1: 

Hmm. The stuff filling the page cache would be inodes and data read from directories. I suspect that posix_fadvise(2) will not help much here.

(BTW, in Linux the POSIX_FADV_NOREUSE code is currently a no-op.)

Chris(topher) Chittleborough <cchittleborough>
Sun 13 Feb 2011 03:38:16 AM UTC, original submission:  

I've discovered that find is causing pagecache poisoning on systems with large filesystems (millions of files).

This can probably be mitigated by using fadvise() to tell the OS that files/directory data doesn't need to be cached.

As far as I can tell it isn't used in any release version of find.

Can the devs look at incorporating this please?

Alan Brown <stoatwblr>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by cchittleborough (Posted a comment)
  • -email is unavailable- added by stoatwblr (Submitted the item)
  • -email is unavailable- added by stoatwblr (findutils - fadvise)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-01 jay StatusNone Wont Fix
        Assigned toNone jay
        Open/ClosedOpen Closed
    2011-04-02 jay Severity3 - Normal 1 - Wish
    2011-02-15 cchittleborough Carbon-CopyRemoved cchittleborough -
    2011-02-15 cchittleborough Carbon-Copy- Added cchittleborough
    2011-02-13 stoatwblr Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.9