Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 827227 - x11-wm/openbox-3.6.1-r3: OpenBox should not enumerate all groups at startup.
Summary: x11-wm/openbox-3.6.1-r3: OpenBox should not enumerate all groups at startup.
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LxQt maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-11-25 06:22 UTC by Dmitry A. Bakshaev
Modified: 2021-11-25 06:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
replace getgrent -> getgroups (808138_Replace-getgrent-with-getgroups.patch,1.65 KB, patch)
2021-11-25 06:24 UTC, Dmitry A. Bakshaev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry A. Bakshaev 2021-11-25 06:22:21 UTC
Openbox iterates through all groups on startup. In our LDAP environment with
activated user private groups, this slows down the startup of openbox
significantly.

Reproducible: Always

Steps to Reproduce:
1. start openbox (or obconf)

Actual Results:  
took a long time to get started 


Expected Results:  
appeared instantly

The usage of getgrent is responsible for these delays. The patch
supplied uses getgroups instead of getgrent, with performs much better and
respects local nscd caches.

our enviroment:
getent group|wc -l
22831
getent passwd|wc -l
14592

patch available on:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808138
https://bugzilla.icculus.org/show_bug.cgi?id=5978
Comment 1 Dmitry A. Bakshaev 2021-11-25 06:24:17 UTC
Created attachment 756148 [details, diff]
replace getgrent -> getgroups