3 ms·
A bit clunky, but can you mount a RAM disk and then put your executables in there? This would at least stop the Disk I/O
by malux85 3y ago
A bit clunky, but can you mount a RAM disk and then put your executables in there? This would at least stop the Disk I/O
- nolist_policy 3y agoThis is probably the easiest way. You could also write a small c program that mmap() and mlock() all the executables and shared objects you need and then stays around in the background.
- LargoLasskhyfv 3y agoThe easiest way is to load the whole OS into RAM and run it from there, while having no SWAP at all. Which is absolutely possible with unbloated distros, especially with current hardware, but even 8GB are sufficient, only 4GB begins to feel uncomfortable if there are more than a few applications open. OTOH 'the browser' is the application, and 4GB are still sufficient for about 40 tabs, so... shrug?
- ac2u 3y agoI thought only the disabling of swap partition would guarantee no subsequent disk i/o.
- kevincox 3y agoYup, I'm pretty sure that Linux will swap out tmpfs if the files are not used. RAM is just a big disk cache if you have swap.
- deleted 3y ago[deleted]
- ynniv 3y ago/dev/shm is convenient, if available