Bug 1469757 - kernel: Implement vDSO support for getpid
kernel: Implement vDSO support for getpid
Status: NEW
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Kernel Maintainer List
Fedora Extras Quality Assurance
:
Depends On:
Blocks: 1469670
  Show dependency treegraph
 
Reported: 2017-07-11 15:14 EDT by Florian Weimer
Modified: 2017-07-11 15:15 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Florian Weimer 2017-07-11 15:14:07 EDT
glibc used to have a getpid wrapper which cached the current PID in userspace.  It turned out that this cache was difficult to maintain because certain system calls (with specific flags) invalidate it, while at the same time, the semantics of those system calls do not permit unconditional invalidation of the cache.

However, as pointed out in bug 1443976 comment 5 and bug 1469670, the system call overhead introduces a substantial performance regression in some cases.  Therefore, it would be nice to have a getpid implementation in the vDSO which does not perform a context switch.

Note You need to log in before you can comment on or make changes to this bug.