hoytech / vmtouch

Portable file system cache diagnostics and control
https://hoytech.com/vmtouch/
BSD 3-Clause "New" or "Revised" License
1.79k stars 210 forks source link

Install it without sudo rights #67

Open CesMak opened 6 years ago

CesMak commented 6 years ago

I would like to install vmtouch without having sudo rights on my ubuntu pc.

How is this possible?

hoytech commented 6 years ago

You can copy the binary somewhere and add it to your path. For example you can put in ~/bin/ and then put export PATH=$PATH:~/bin in your .bashrc and then logout and log back in.

Michael-IDA commented 6 years ago

Basically just FYI for anyone hitting this thread:

If I understand the online manual correctly, running as non-root excludes you from being able to use -l, -L, or -d (locking and daemon) (and possibly others flags).

hoytech commented 6 years ago

@Michael-IDA - Yes, pretty much. Actually you technically can use memory locking, but most systems are configured with very small limits for non-root users. For example here's a stock ubuntu setup:

$ ulimit -a|grep -i locked
max locked memory       (kbytes, -l) 16384