-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LXCFS slows down Wine in container a lot #659
Comments
Just a thought: It may be better to cache contents that won't change normally,so we can return them directly instead of reading everytime to avoid overhead.(Maybe create a indepent thread to watch for possible changes that seldom happen,like hotplug event in physical machine). |
I added
via a systemd drop in file and the speed of wine improved a lot. Now every executable in wine takes 1-2 secs to start. Which is normal in wine. |
LXCFS doesn't really know (or wants to know) what file may or may not change and may or may not return varying values based on the reader's namespace or other process attribute. Storing cached data on a per-process basis is also impractical as it would then require LXCFS to keep track of processes still running and would offer a pretty easy way to DoS the host system. As annoying as high CPU usage of LXCFS may be, it just slows things down. It doesn't allow for data leakage (as caching might) nor causing a full host DoS (as per-PID caching might). LXCFS never reads files on its own, it always happens as a result of something being read through its FUSE filesystem. So in this case, |
Thanks for the explanation! Since this issue is very much the same as #655 , feel free to close or merge! |
The template below is mostly useful for bug reports and support questions.
Feel free to remove anything which doesn't apply to you and add more information where it makes sense.
Required information
cat /etc/os-release
orcat /etc/lsb-release
6.0.1
uname -a
cat /proc/1/mounts
ps aux | grep lxcfs
Issue description
exe runs in wine takes a lot time to startup, make it impratical to use in lxc.
A brief description of what failed or what could be improved.
If you have LXCFS crashing, please, collect a crash dump.
Steps to reproduce
just start one or more exe through wine.
lxcfs takes 60%~150% cpu usage when exe is starting.
and exe takes a lot secs to startup
Information to attach
It looks like most time are spend at reading cpu info in loop.see attached picture
dmesg
)ps aux | grep lxcfs
)The text was updated successfully, but these errors were encountered: