Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1267269 Details for
Bug 1437018
lsof -nP is unusable on Fedora when a multi threaded process has many files open
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to only list threads/tasks if the -K flag is given.
lsof-no-default-K.patch (text/plain), 975 bytes, created by
Marcus Sundberg
on 2017-03-29 09:55:15 UTC
(
hide
)
Description:
Patch to only list threads/tasks if the -K flag is given.
Filename:
MIME Type:
Creator:
Marcus Sundberg
Created:
2017-03-29 09:55:15 UTC
Size:
975 bytes
patch
obsolete
>From c650ee061fecb562b9290a51a9f27aef3a40a22a Mon Sep 17 00:00:00 2001 >From: Marcus Sundberg <marcus.sundberg@aptilo.com> >Date: Wed, 29 Mar 2017 10:51:01 +0200 >Subject: [PATCH] Do not show tasks when no selector option is present. > >Normally tasks share file descriptors so the information is quite >redundant, and when there are processes with both many files and many >threads running a simple lsof -nP takes orders of magnitude more >time. If wanted information for tasks can still be listed by using the >-K option. >--- > main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/main.c b/main.c >index 78fdac1..eec01ee 100644 >--- a/main.c >+++ b/main.c >@@ -1159,7 +1159,7 @@ main(argc, argv) > "%s: no select options to AND via -a\n", Pn); > usage(1, 0, 0); > } >- Selflags = SELALL; >+ Selflags = SELALL & ~SELTASK; > } else { > if (GOx1 >= argc && (Selflags & (SELNA|SELNET)) != 0 > && (Selflags & ~(SELNA|SELNET)) == 0) >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1437018
: 1267269