Bug 1779325
Summary: | when NSS_SDB_USE_CACHE not set, after curl access https, dentry increase but never released - consider alternative algorithm for benchmarking ACCESS call in sdb_measureAccess | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Dave Wysochanski <dwysocha> | ||||
Component: | nss | Assignee: | nss-nspr-maint <nss-nspr-maint> | ||||
Status: | CLOSED ERRATA | QA Contact: | Alicja Kario <hkario> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.7 | CC: | ccoleman, chhudson, dueno, dwysocha, esandeen, farandac, gblomqui, hkario, igreen, jreznik, nss-nspr-maint, qe-baseos-security, rkrawitz, rrelyea, simore, ssorce, syangsao, szidek, thamilto, toneata, uobergfe, zhenggu | ||||
Target Milestone: | rc | Keywords: | Triaged, ZStream | ||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | nss-3.53.1-3.el7_9 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 1571183 | ||||||
: | 1879249 (view as bug list) | Environment: | |||||
Last Closed: | 2020-09-29 21:18:42 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 1571183, 1804262 | ||||||
Bug Blocks: | 1879249 | ||||||
Attachments: |
|
Description
Dave Wysochanski
2019-12-03 18:46:05 UTC
The tmpdir proposal should be trivial to implement as a way for the benchmark to clean up after itself: # cat /proc/sys/fs/dentry-state 610245 584728 45 0 24190 0 # mkdir tmpdir # for I in `seq 1 10000`; do stat tmpdir/file$I &>/dev/null; done # cat /proc/sys/fs/dentry-state 620095 594578 45 0 34197 0 # rmdir tmpdir # cat /proc/sys/fs/dentry-state 610097 584580 45 0 24200 0 (negative dcache drops from ~34000 to ~24000 when the tmp dir in their path gets removed) -Eric Created attachment 1641806 [details]
patch to remove negative dcache entries post-test
Here's a patch that works for me, it could use review. Happy to send it to an upstream list if that's appropriate.
Including in the code comments why the temp files are created in subdirectory would likely make the code easier to understand in the future. Yes, filing a bug upstream and attaching the patch there is the best course of action (feel free to CC Robert Relya, Daiki Ueno and me on it, or just reference it from this bug and I'll fix up the CC's). sorry, I meant Robert Relyea (missed 'e') I don't know where the upstream bugtracker is... Thanks, I guess that should have been obvious but I wasn't sure - not my area. :) Ok, if you'd like to add relevant red hatters to cc, the bug is here https://bugzilla.mozilla.org/show_bug.cgi?id=1603801 This patch is now merged upstream https://hg.mozilla.org/projects/nss/rev/928721f7016463b6aefef8239ba204bd809416c5 fixed in nss-softokn-3.53.1-6.el7_9 Builds attached to errata Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: nss and nspr security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:4076 Did the bug noted in comment #19 ever get reported and resolved upstream? It doesn't seem like it. |