scottyhardy / docker-wine

Docker image that includes Wine and Winetricks for running Windows applications on Linux and macOS
MIT License
889 stars 152 forks source link

Windows App Slows Down in Docker-Wine Container #142

Closed jmdelahanty closed 2 years ago

jmdelahanty commented 2 years ago

Hello scottyhardy! My name is Jeremy and I'm using this repository for my lab. I'm adapting it slightly for our lab to use given how things are organized for our projects.

In short, we have to use a windows program to perform a series of file conversions and we're trying to use Docker-wine so it can be done on a computing cluster. For short jobs (around 5k files) it performs well enough. However, for larger jobs, we see something strange.

When the converter is started, it performs about as well as it does on a Windows machine. After a few thousand files are converted, the program slows down somewhat. After 10k files, it slows down to about half of what it once was. At 20k files, it slows down even more, about by half again. Eventually, it slows to a crawl.

I've been searching for why something in a wine container would start out performing well but slow down so much without much luck. Would you have any advice for how to interrogate this further and see what the potential slowdown might be?

jmdelahanty commented 2 years ago

Update to this:

It had nothing to do with wine and everything to do with trying to write thousands of individual files over NFS.