Comments (4)
SIGKILL can’t be blocked, so that’s not surprising.
I’ve never used “transmission”, could you try to reproduce this with a smaller program and/or a precise sequence of steps? A log of strace
might be useful if you can’t get that – e.g. where is the program spending its time.
But before doing that, can you elaborate what you want to achieve? Did you read the README file where it says you can also limit the RAM usage of a program by putting it into a cgroup? That might be a more appropriate use case than the somewhat heavy-handed syscall intercept that nocache
is doing.
from nocache.
Thanks, I will try "strace".
But before doing that, can you elaborate what you want to achieve?
Transmission is a BitTorrent client, so it reads a lot of data from the file system, mostly video. Second access to that data will probably be in a month, so there is no need to keep it in the file system cache.
from nocache.
I think using nocache is a bit misgueded here. Instead, if you’re concerned about cache thrashing by a BitTorrent client, I’d suggest executing the command in a cgroup with limited memory – you have all the benefits (LRU cache that caches the most useful stuff) without any of the downsides (using dlsym hacks that don’t reliably work).
from nocache.
A BitTorrent client is a typical situation where the LRU cache algorithm is inefficient. Least Recently Used time is not precise enough to represent real access frequency. So I help the program by disabling cache for specific directories (using my patch). I do not know how to achieve this with cgroups.
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
- nocache.c:148: init_mutexes: Assertion `fds_lock != NULL' failed. HOT 3
- 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.