.exe slow to write a binary file under wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
shadeless
Level 1
Level 1
Posts: 6
Joined: Thu Dec 21, 2017 12:48 am

.exe slow to write a binary file under wine

Post by shadeless »

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
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: .exe slow to write a binary file under wine

Post by DarkShadow44 »

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?
shadeless
Level 1
Level 1
Posts: 6
Joined: Thu Dec 21, 2017 12:48 am

Re: .exe slow to write a binary file under wine

Post by shadeless »

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.
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: .exe slow to write a binary file under wine

Post by DarkShadow44 »

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?
shadeless
Level 1
Level 1
Posts: 6
Joined: Thu Dec 21, 2017 12:48 am

Re: .exe slow to write a binary file under wine

Post by shadeless »

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 :)
shadeless
Level 1
Level 1
Posts: 6
Joined: Thu Dec 21, 2017 12:48 am

Re: .exe slow to write a binary file under wine

Post by shadeless »

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.
Locked