datenwolf / fmlock Goto Github PK
View Code? Open in Web Editor NEWmap files into memory and lock them there
License: BSD 3-Clause "New" or "Revised" License
map files into memory and lock them there
License: BSD 3-Clause "New" or "Revised" License
Hi,
I tried to use GOPreload [1] on my Debian system. GOPreload is based on fmlock.
GOPreload author is using arch and GOPreload works fine on it as it seems to work also on gentoo.
But It doesn't seem to have any effect on my Debian system.
Therefore I'm wondering if fmlock has the right to lock memory on Debian or if there could be anything Debian-specific about it ? Maybe you could know something about it ?
BTW Memlockd seems to do the same job as fmlock (?), and Memlockd is packaged on Debian [2] therefore I tend to consider that fmlock is supposed to run on debian ?
Besides, is it normal that when I preload firefox with GOPreload preparing 137MB of files, fmlock still uses 0K RAM ?
$ pgrep fmlock
1888
$ pmap 1888
1888: /usr/share/gopreload/bin/fmlock.gopreload/tmp/preloadlist.txt
total 0K
Thanks in advance for your help !
Cheers
antistress
[1] https://github.com/kokoko3k/gopreload
[2] https://packages.debian.org/sid/memlockd | This seems to be a Russell Coker's project https://doc.coker.com.au/category/projects/
Hi, i develop gopreload:
https://github.com/kokoko3k/gopreload
...it is mainly a bash script, but uses some c code to map files into memory.
My c code does the same as your fmlock tool, but i'm not a c programmer, so i ask you if i can use your code (which is better) instead of mine.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.