Skip to content
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

[Linux]: increase read(2) buffer size when reading /proc files lines #2054

Merged
merged 6 commits into from Jan 15, 2022

Conversation

giampaolo
Copy link
Owner

Summary

  • OS: Linux
  • Bug fix: yes
  • Type: core
  • Fixes: 2050

Description

Increase read(2) buffer size from 1k to 32k when reading /proc pseudo files line by line. This should help having more consistent results.

Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
…never used

Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
@giampaolo giampaolo changed the title Read whole proc files 2 [Linux]: increase read(2) buffer size when reading /proc files lines Jan 15, 2022
@giampaolo giampaolo merged commit 55161bd into master Jan 15, 2022
@giampaolo giampaolo deleted the read-whole-proc-files-2 branch January 15, 2022 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Linux] Reading from /proc/meminfo line-by-line results in inconsistent data
1 participant