• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Fadvise memory leak on 8.3-RELEASE

Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
3 Posts 2 Posters 2.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    phil.davis
    last edited by Feb 22, 2013, 11:59 AM

    I was looking for things that used memory (related to http://forum.pfsense.org/index.php/topic,59237.0.html) and found this little issue:

    vmstat -m | grep fadvise
          fadvise 164447  5139K       -   164447  32
    

    Apparently there is a memory leak in the posix_fadvise function in FreeBSD 8.3-RELEASE which has been fixed in the 8-STABLE mainline. My nanoBSD system has leaked 5MB in a couple of days of uptime. That would become significant when a 256MB nanoBSD system is up for a month. After rebooting, the fadvise usage starts back at 1K and slowly increases.
    FreeBSD 8.3 release notes have references to posix_fadvise - http://www.freebsd.org/releases/8.3R/relnotes-detailed.html
    This FreeBSD forum thread has some symptoms etc - http://forums.freebsd.org/showthread.php?p=192718
    and this thread indicates that RRDtool uses posix_fadvise, running up kernel memory leaks - http://oss.oetiker.ch/rrdtool/forum.en.html#nabble-td7580539
    and the fix (claimed) is here - http://svnweb.freebsd.org/base?view=revision&revision=234661
    Can someone see if this is a good fix, is worth doing and is possible to patch into the pfSense FreeBSD 8.3?

    As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
    If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

    1 Reply Last reply Reply Quote 0
    • J Offline
      jimp Rebel Alliance Developer Netgate
      last edited by Feb 22, 2013, 1:48 PM

      If it really is leaking, sure. Open up a ticket on redmine and we can look into it.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • P Offline
        phil.davis
        last edited by Feb 22, 2013, 4:54 PM

        Ticket #2835 http://redmine.pfsense.org/issues/2835

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received