Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2019 13:14:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 236815] devel/glib20: loops over all possible file descriptors
Message-ID:  <bug-236815-6497-N0c2ZPOz4F@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

--- Comment #8 from Eugene Grosbein <eugen@freebsd.org> ---
(In reply to Peter Niitenberg from comment #6)
(In reply to Peter Niitenberg from comment #6)

Peter, thank you very much for the patch. I somewhat modified it and tested
with great success. It helps for the MC case too.=20

For a test, I used mentioned system based on Intel Xeon Gold 6130 CPU @ 2.1=
0GHz
running FreeBSD 11.2-STABLE with memory:

real memory  =3D 377945587712 (360437 MB)
avail memory =3D 367256449024 (350243 MB)

sysctl defaults are:

kern.maxfiles: 11520879
kern.maxfilesperproc: 10368783

For unpatched glib20 port, the command "mcview
/usr/ports/security/ipsec-tools/files/natt.diff" takes as much time to start
as:

real    0m3,341s
user    0m1,349s
sys     0m2,002s

Very noticable delay over 3 seconds.

With patch applied:

real    0m0,216s
user    0m0,023s
sys     0m0,035s

That's 5714% system time ratio and 1546% real time ratio.

I've attached edited version of same code that adds missing check for resul=
t of
additional malloc() call.

Dear maintainer, please consider adding this to the port.

--=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-N0c2ZPOz4F>