LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-03-2006, 09:35 AM   #1
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Arch
Posts: 452

Rep: Reputation: 35
Wine memory usage?


Ok whenever I run any application in wine the application seems very slow and only uses about 30mb of memory wine config only allows for basic setup where can I edit wine to use more memory?
 
Old 02-03-2006, 09:43 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
I use Cedega and it always seems to swap. I've got plenty of RAM and it's never used, I know cause I run games in windows and make sure conky is always visible to monitor everything

I'd be interested to see if there is a cool answer to this
 
Old 02-03-2006, 09:55 AM   #3
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
I believe wine overrides the its loader section and does not use glibc's in order to map memory the windows way.
Maybe the memory usage report gets confused by this.
How do you monitor memory usage? Is it the free or ps command?
Are you using a modified kernel with 4G VM split patch from Ingo Molnar?

Last edited by Agrouf; 02-03-2006 at 10:01 AM.
 
Old 02-03-2006, 12:50 PM   #4
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Are you sure that it uses 30 MB of memory. You have to be careful reading the information from ps or top. The utility pmap is a better program to figure out how much memory the program is using.

The reason why WINE runs Windows programs slow is because it is an software emulator. It is trying to emulate Windows. Doing this takes processor time. WINE will run faster with multiple processors but I do not know if it is threaded. Windows programs has memory leaks, so over time it will eat all the memory in your system.
 
1 members found this post helpful.
Old 02-04-2006, 01:47 AM   #5
jlo_sandog
Member
 
Registered: Jul 2005
Location: USA
Distribution: F10 (x86_64)
Posts: 549

Rep: Reputation: 32
Wine is not an emulator. It implements (or tries) windows API. Emulation involves changing or translating one set of binary commands into another. That's not what wine does. Just look at the code. It's obvious. In fact if it were an emulator, you would need windows installed.

Anyway, I'm not sure about the memory question but here is a bit of healthy reading http://www.winehq.com/site/docs/winedev-guide/x2860
 
Old 02-04-2006, 02:47 AM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Thanks for that link jlo_sandog, nice read
 
Old 02-04-2006, 04:43 AM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally Posted by jlo_sandog
Wine is not an emulator. It implements (or tries) windows API. Emulation involves changing or translating one set of binary commands into another. That's not what wine does. Just look at the code. It's obvious. In fact if it were an emulator, you would need windows installed.

Anyway, I'm not sure about the memory question but here is a bit of healthy reading http://www.winehq.com/site/docs/winedev-guide/x2860
Wrong, WINE is an emulator. What you are thinking is a hardware emulator which most people think of first. There are two kinds of emulators. One is a software emulator and the other is an hardware emulator. A software emulator have to translate the commands like Windows API to X11 that WINE does for GUI. A hardware emulator simulates a whole complete computer in software although an hardware emulator should not be confused with virtual machines. Actually WINE is an emulator. It is just emulating software not hardware.
 
Old 02-04-2006, 05:15 AM   #8
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Electro: Guess you haven't looked at the Wine website, ever. Check myth number one here
 
Old 02-04-2006, 08:48 AM   #9
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Arch
Posts: 452

Original Poster
Rep: Reputation: 35
Actually I was wrong it had nothing to do with the system memory it had to do with my video card I tried "echo 1 > /proc/sys/vm/legacy_va_layout" as root and it seemed to speed things up quite a bit. My problem was in half life 2 and it at first looked like it may have been memory related but it was right on http://www.linux-gamers.net/modules/...p?articleid=60
the whole time I skipped over it though because it said for the nVidia 1.0-6629 driver and mine is the the 1.0-8178
 
Old 02-04-2006, 05:39 PM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally Posted by cs-cam
Electro: Guess you haven't looked at the Wine website, ever. Check myth number one here
I already read that a few years ago. People still think emulators simulate hardware which is another type of emulator. WINE simulates Windows so it is still a software emulator. WINE developers states an emulator as software simulating hardware or a machine. They do not mention a software emulator correctly. A software emulator can also be called a wrapper. For example, you will need a Video for Windows to Direct Show wrapper to use video capture cards with VirtualDub. The performance will be slower and errors will show up as bugs. A software emulator have to count for infinite variables that the software creates. Of course performance of an software emulator can be improve but it will not reach up to 100%. Another example is running Starcraft with WINE and trying to use Battlenet console shows the amount of variables that software emulators have to count for. Battlenet console never gets refresh unless you enter into a game. I rather stick with Virtual Machines such as VMware. Virtual machines maybe slower but they are much more reliable.
 
Old 02-10-2006, 08:23 AM   #11
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
With all respect, I believe you are wrong. WINE performance can be higher than 100% in some specific cases because WINE does not "wraps", it implements. WINE overrides high level APIs like the elf loader and calls low level APIs on the host system. It is slower than windows most of the time because the windows API is badly designed and hard to implement because not fully understood. In some specific cases, the WINE implementation of the API is faster than the windows one though.
 
Old 02-10-2006, 08:52 AM   #12
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I need QT to run KDE apps so maybe it's an 'emulator' too
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Usage Spaw Usage Swappiness Issues joelunch Linux - Software 3 01-04-2006 06:16 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM
Memory Usage baldy3105 Linux - Hardware 3 05-19-2003 06:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration