Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2019 07:31:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 236815] [patch] devel/glib20: loops over all possible file descriptors
Message-ID:  <bug-236815-6497-g9ruTsMe6e@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-236815-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-236815-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236815

rozhuk.im@gmail.com changed:

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

--- Comment #26 from rozhuk.im@gmail.com ---
Created attachment 209087
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D209087&action=
=3Dedit
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 fold=
er
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 happ=
en 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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236815-6497-g9ruTsMe6e>