Comments (3)
I’ll take silence as assent and merge these two commits.
from nocache.
I see three options:
- Change the data structure of locks to some map-like container or a search tree, using the fd as a key. This scales well for a low number of FDs, but has the same (or worse) problems when you actually want to use a billion FDs. The drawback is that you need to allocate heap memory during every system call interception.
- Introduce an artificial cap on
max_fds
– makenocache
work on the first N FDs, where we could pick N to be a million or 100k. That makes the fix trivial. We can implement a flag for this if people care. - Do nothing because this is a pathological case.
Given that it caused build failures for some people, 3) is not a real option I think. Option 2) is easy to implement correctly.
Thoughts?
from nocache.
@Feh, sorry for digging in old issues. Looking in the getrlimit documentation, I believe the off-by-one issue mentioned in your commit message was introduced (instead of fixed). Left a comment for you to review in the code: ce5c187#r39007823
from nocache.
Related Issues (20)
- Support O_DIRECT? HOT 1
- Incompatibility with glibc 2.28 HOT 23
- Do SubProcess calls work as expected. HOT 2
- "transmission-gtk" freezes right after downloading because of "nocache" HOT 4
- nocache makes MC very slow HOT 2
- Doesn't work for pv in conjunction with physical partitions/disks? HOT 3
- GCC cache size flags HOT 3
- Off-by-one issue with NOCACHE_MAX_FDS HOT 6
- Lock pages from preventing of being paged and tune malloc. HOT 1
- Trivial suggestions for README.md
- effect on write cache HOT 1
- Command line parsing issue(s?) causing undefined behaviour HOT 3
- Default Thread limit is not respecting container cpu limit but underline node(vm) HOT 2
- Mention no help for huge files
- unexpected nocache overhead on trivial commands HOT 14
- BUG: pthread_mutex_lock on destroy HOT 3
- nocache works, systemd-run doesn't
- backup still using cache HOT 1
- FTBFS on armhf: symbol `fopen64' is already defined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nocache.