[Bug 236815] [patch] devel/glib20: loops over all possible file descriptors

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 12 07:31:08 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236815

rozhuk.im at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #207479|0                           |1
        is obsolete|                            |
 Attachment #209087|                            |maintainer-approval?
              Flags|                            |

--- Comment #26 from rozhuk.im at gmail.com ---
Created attachment 209087
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=209087&action=edit
more faster

I rework my patch to use struct xfile instead of struct kinfo_file.
struct kinfo_file - causes to read many info, in case files on non local fs
this produces traffic and lags.
For example I open in thunar /usr/ports/devel mounted on NFS, and same folder
mounted via sshfs, and got ~9000 opened files descriptors.
Then while I try to open any file thunar make call fdwalk() and it freeze on
sysctl(CTL_KERN, KERN_PROC, KERN_PROC_FILEDESC) 5-10 seconds, and this happen 2
times, so total freeze time starting from 10 second per one opened file.

struct xfile have less info/size and does not cause any side effects.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-gnome mailing list