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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jul 20 13:14:52 UTC 2019


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

--- Comment #8 from Eugene Grosbein <eugen at 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. 

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

real memory  = 377945587712 (360437 MB)
avail memory = 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 result of
additional malloc() call.

Dear maintainer, please consider adding this to the port.

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


More information about the freebsd-gnome mailing list