New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when forking: close FDs in optimized way #934
Open
mighq
wants to merge
46
commits into
collectd:master
Choose a base branch
from
mighq:exec_closefrom
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* code ported from sudo utility
Patch 3f847de has an error within this section (based @ current collectd master release):
The patch section -22,6 +22,7 (for Makefile.am) needs removing.
Modified (local) Pull #934 Tested OK @ current collectd master. |
octo
added
Pending feedback
Pending contributor action
and removed
Pending feedback
labels
Sep 12, 2016
* nvidia_gpu * write_stackdriver * pcie_errors The first 2 are disabled, as I don't know what lib they require (configure fails) Change-Id: I56456b418edd3defb3c5620a5ad58f527951309c (cherry picked from commit 09abfaa)
Change-Id: I655dd0b3cb82053f7cc50dec149d4f7cc25ee18b (cherry picked from commit 2d485cf)
If a user set MetaData "foo" "bar" and a metric does not have meta data (vl->meta == NULL), it causes unexpected match. Existance of MetaData config should be checked before meta data in a metric. See also: collectd#1930 Signed-off-by: Takuro Ashie <ashie@clear-code.com> (cherry picked from commit d4f5388)
…mismatches on Solaris (cherry picked from commit 54d4f88)
(cherry picked from commit 9315ccb)
(cherry picked from commit 9317d07)
Some plugins' RC was != 0 and started to fail due to stricter verification introduced by 3b9c7b2. This commit fixes those return values. For some plugins, fix verbosity of error message: non-zero rc should be error, not warning. Change-Id: I9a3f1f80e266858b6744fd9d9d99b352b8d94306 Change-Id: Ibf6ebc6cdc93c6e105d488e4a131dcb6e8eea19b Change-Id: I35bac15fa0a89b068575739ac1cff0115c9d3a40 s Change-Id: I992002c56763fbdea5347e5b6e176cc86f5a08ce (cherry picked from commit a07f44c)
Change-Id: Iae7c3208024372485fd0901898cbe2e178610082 (cherry picked from commit d75591c)
(cherry picked from commit 4af2afc)
(cherry picked from commit a7401cc)
Change-Id: I0972f74f3fff05cf29fa9b0be383f0b0df1e6d03 Fixes: collectd#3200 (cherry picked from commit 835a58c)
glibc has removed __NAMESER and __BIND symbols from their codebase. There is no benefits of use defines from glibc, so replaced them by numbers. Closes: collectd#3145 (cherry picked from commit faa20ef)
(cherry picked from commit 3b05d9f)
(cherry picked from commit 45b8c05)
(cherry picked from commit a72ad42)
limits.h check removed in 865f2eb limits.h included in src/daemon/collectd.h unconditionally Issue: collectd#3181 (cherry picked from commit d994169)
865f2eb breaks locale checks Issue: collectd#3181 (cherry picked from commit 38fac5d)
(cherry picked from commit abaa1c8)
(cherry picked from commit eada465)
(cherry picked from commit 626d3ab)
(cherry picked from commit 27ca3ca)
related to backports/cherry-picks.
Collectd 5.9
(cherry picked from commit 262212d)
…ms is enabled (cherry picked from commit e4c9814)
Backport fixes for collectd#3225 to collectd-5.9
Automatically merged due to "Automerge" label
(cherry picked from commit 47f8966a2ea076a918d0d1383765621651337881)
Change-Id: Idab2c4ffa242a73b651f1b056f85f905e356c5ac
fix ssnprintf wrapper
* keeping up with changes in 5.9
* not really useful, rather confusing
* talking about changes from commit 3f847de
* catching up with master
manually "rebased" the patch on top of 5.9 sources and then merged current master |
* src/compat/closefrom.c * src/compat/missing.h
* only supporting Linux - as oposed to original BSD and HP-UX variants of closefrom * dropping the original copy+paste structure and using utils_* style
* by adding new header files to the _SOURCES lists in Makefile.am
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem was occurring when
fs.file-max
sysctl option was set to really high number (millions). In combination with fork-every-time exec data sources, it was spending too much time in CPU doing millions of unneccessaryclose()
calls.ChangeLog: exec plugin: optimized way (faster) of closing the file descriptors