Hi,
I am using Wine to run an open-source .exe program. This program essentially does some calculations and then writes the results into a binary file. This action is performed in less than a second in a Windows environment. Unfortunately, it takes about 10 seconds to write this binary file under Wine. My questions are:
1. Is Wine inherently that much slower at writing binary files than a native Windows environment?
2. If not, what steps can I take to diagnose the issue?
Thank you
FYI, this is the software I'm using
http://laacg.lanl.gov/laacg/services/download_sf.phtml
.exe slow to write a binary file under wine
- DarkShadow44
- Level 8
- Posts: 1207
- Joined: Tue Nov 22, 2016 5:39 pm
Re: .exe slow to write a binary file under wine
It should be that much slower, no. Especially not when it's really just calculations and writing a file...
Mind providing a taste-case, i.e. what to do to reproduce the issue?
Mind providing a taste-case, i.e. what to do to reproduce the issue?
Re: .exe slow to write a binary file under wine
I can't figure out how to reproduce the problem in a way that's independent from the program I'm trying to run (Poisson Superfish). Writing text files in the terminal and compiling in c++ using winegcc seem to work ok. So I'll just list the steps that I use reproduce the error. I fear that no one will actually go through all that trouble.
1. Install Poisson Superfish on linux using Wine. You have to scroll all the way down and click register. http://laacg.lanl.gov/laacg/services/download_sf.phtml
2. Once installed, open a unix terminal in this directory .../.wine/drive_c/LANL/Examples/RadioFrequency/Waveguides/
3. Run wineconsole cmd.
4. In the new window, run RUNWG.BAT.
3. Several windows will pop up. The ones that stall for a bit are in the process of writing to a file named something.T35. The T35 refers to tape 35 (I guess that's how a sector of harddrive memory would be referred as back in the 80s). This is the binary file with the solution in it.
It will finish eventually, but it is pretty slow.
1. Install Poisson Superfish on linux using Wine. You have to scroll all the way down and click register. http://laacg.lanl.gov/laacg/services/download_sf.phtml
2. Once installed, open a unix terminal in this directory .../.wine/drive_c/LANL/Examples/RadioFrequency/Waveguides/
3. Run wineconsole cmd.
4. In the new window, run RUNWG.BAT.
3. Several windows will pop up. The ones that stall for a bit are in the process of writing to a file named something.T35. The T35 refers to tape 35 (I guess that's how a sector of harddrive memory would be referred as back in the 80s). This is the binary file with the solution in it.
It will finish eventually, but it is pretty slow.
- DarkShadow44
- Level 8
- Posts: 1207
- Joined: Tue Nov 22, 2016 5:39 pm
Re: .exe slow to write a binary file under wine
Just tested it and I agree that's way to slow. I suspect the programs writes in an inefficient way that works on windows, but has a lot of overhead on wine.. But that's just a blind guess.
Mind creating a bug with all these instructions on https://bugs.winehq.org and linking me there?
Mind creating a bug with all these instructions on https://bugs.winehq.org and linking me there?
Re: .exe slow to write a binary file under wine
I submitted the bug report.
https://bugs.winehq.org/show_bug.cgi?id=44236
Sorry, I don't know how to actually link you to it, so I'm pasting the link here.
Thank you so much for looking into it
https://bugs.winehq.org/show_bug.cgi?id=44236
Sorry, I don't know how to actually link you to it, so I'm pasting the link here.
Thank you so much for looking into it
Re: .exe slow to write a binary file under wine
Here's another blind guess. Superfish might be writing with the binary file expecting a windows file system like NFTS, and there might be a lot of overhead with Wine converting to a Linux file system.