#1286 snmpwalk of hrstorage too slow for large no of mounted filesystems.

duplicate (1)

snmpwalk for the hrstorage table for a system with large number of mountpoints is too slow. This is caused by the overhead of the getmntent() calls used to fetch the details of the /etc/mnttab entries in Init_HR_FileSys() in hr_filesys.c. For systems with large number of mounted file systems, the overhead was too much, for instance for a system with 3000 mounts, a snmpwalk for hrStorage used to take around 20 mins.

The attached patch fixes the issue by maintaining a cache of all the /etc/mnttab entries and walk through the cache instead of opening /etc/mnttab and walking all the entries for each mountpoint.

1 Attachments


  • Wes Hardaker

    Wes Hardaker - 2014-07-23
    • labels: --> duplicate
    • status: open --> closed
    • assigned_to: Wes Hardaker
  • Wes Hardaker

    Wes Hardaker - 2014-07-23

    Closed because of the duplicate with #1287


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks