[Mono-list] Cannot execute binary file

Ian Norton ian.norton-badrul at thales-esecurity.com
Tue Aug 2 05:14:20 EDT 2011


On Tue, Aug 02, 2011 at 10:10:17AM +0100, pjsmith wrote:
> Hi,
> 
> Yes, it's a .NET binary.  I am developing in VS.NET on windows but running
> the app on Linux OS.
> 
> Strange thing is, I can execute this as ./app on the 64bit Linux ubuntu
> systems I have tried, but on the 32bit ones, I have to do 'mono app.exe' and
> this _seems_ to effect performance.  At least the app handles half as many
> queries per second on the testing I've done so far.  Performance seems to
> drop by half compared to the version I can run as ./app, and I don't know
> why this is.  If the code is running through some form of interpreter,
> perhaps this is the reason?

Running with ./ means that the kernel actually knows it needs to do 'mono
./app' for executable files that are .Net programs. The fact that on your 32bit
machine this doesn't work just means that it's binfmt-misc setup isnt
configured for mono.
 
> Can I perhaps compile the app on Windows with Mono and not get this issue?

That shoudln't be how it works,  mono is quite capable of running a .net built
program.

The version of mono on your 32bit machine might be making the most difference 
in terms of performance.   You also mention queries, is this talking to a
database? 

Ian

 
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Cannot-execute-binary-file-tp3711483p3711714.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list