Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-22-12, 08:20 PM   #1
xorbe
Unbuffered User
 
Join Date: Jun 2005
Posts: 388
Default Native Firefox performance vs Firefox in VirtualBox

Why is Win7 Firefox (8.0.1) inside of VirtualBox on Linux sooooo much smoother than just Firefox (9.0.1) running natively on Linux? You'd think that it would be the other way around!!! openSuSE 12.1 x64 and nvidia 290.10 driver. Just scrolling this Post New Thread page lags like crazy, which is not present in the VirtualBox instance one virtual screen down. It's a triple-head rotated 1200x1600 setup with Xinerama. GTX 550Ti + 6600GT, 3.8GHz cpu, 4GB ram, 128GB ssd.
xorbe is offline   Reply With Quote
Old 02-23-12, 09:35 AM   #2
johnc
Registered User
 
Join Date: May 2011
Posts: 92
Default Re: Native Firefox performance vs Firefox in VirtualBox

Is the VB Firefox running in a composited environment (Aero)?
johnc is offline   Reply With Quote
Old 02-23-12, 09:39 AM   #3
Q
 
Join Date: Sep 2004
Posts: 7,808
Default Re: Native Firefox performance vs Firefox in VirtualBox

It's likely a disk caching issue. The way virtualized OS's write to disk is far different than how it's done natively. Firefox likes to write to disk for caching quite a bit - these writes are actually going to be in memory longer within a VM.
Q is offline   Reply With Quote
Old 02-23-12, 12:52 PM   #4
gonzo_s
Registered User
 
Join Date: Mar 2009
Posts: 58
Default Re: Native Firefox performance vs Firefox in VirtualBox

Google for Firefox Memory Optimization. You may also disable caching to disk. Mine is fast as hell and no lags after some tweaking. If you want I can post here the tweaks.
gonzo_s is offline   Reply With Quote
Old 02-23-12, 05:50 PM   #5
xorbe
Unbuffered User
 
Join Date: Jun 2005
Posts: 388
Default Re: Native Firefox performance vs Firefox in VirtualBox

Quote:
Originally Posted by johnc View Post
Is the VB Firefox running in a composited environment (Aero)?
Doesn't look like it.

Quote:
Originally Posted by Q View Post
It's likely a disk caching issue. The way virtualized OS's write to disk is far different than how it's done natively. Firefox likes to write to disk for caching quite a bit - these writes are actually going to be in memory longer within a VM.
What does disk caching have to do with smoothness of scrolling a small page up and down?

I guess I should run some experiments, like yank out the 6600GT card, or un-rotate the screens, or both. And try just one screen. There's just a huge (like 10x) perf loss natively. Gotta be something X11 related and the nvidia driver and my configuration.
xorbe is offline   Reply With Quote
Old 02-23-12, 06:23 PM   #6
Q
 
Join Date: Sep 2004
Posts: 7,808
Default Re: Native Firefox performance vs Firefox in VirtualBox

Quote:
Originally Posted by xorbe View Post
Doesn't look like it.



What does disk caching have to do with smoothness of scrolling a small page up and down?

I guess I should run some experiments, like yank out the 6600GT card, or un-rotate the screens, or both. And try just one screen. There's just a huge (like 10x) perf loss natively. Gotta be something X11 related and the nvidia driver and my configuration.
You know, if I would have read your original post fully I probably wouldn't have made that statement.
Q is offline   Reply With Quote
Old 02-23-12, 11:24 PM   #7
Ahmad Samir
Registered User
 
Join Date: Nov 2009
Posts: 13
Default Re: Native Firefox performance vs Firefox in VirtualBox

IIRC the proprietary driver has a performance issue with GTK+ themes that use gradients (e.g. Clearlooks), so try switching to another GTK+ theme e.g. ClearlookClassic or Nodoka.

Also you might want to give the open source driver, nouveau a shot; I've been having some performance issues with scrolling in Firefox, e.g. scrolling web sites that use heavy box-shadow would be a bit jerky, switching to nouveau fixed the issue; also scrolling web pages in e.g. Launchpad.net would be slow/jerky https://bugzilla.mozilla.org/show_bug.cgi?id=563720, nouveau doesn't seem to suffer from that problem.

FWIW, the main thing I miss with using nouveau is VDPAU (ftp://download.nvidia.com/XFree86/vd...tml/index.html), but then again a) I don't have that many HD videos and b) my CPU isn't that new but can cope with playing videos with the Xv video output.

Also the OpenGL situation has improved a lot with nouvea and latest Mesa, enabling e.g. KDE4 3D desktop effects doesn't cause any big issues (I don't use desktop effects usually, but in the ~5hours I enabled them I didn't notice any major issues with either the proprietary driver or nouveau).

(So, basically all I am saying is give the nouveau driver a shot it could improve things (or make them worse in which case the proprietary driver won't look so bad)), note that you'll have to uninstall the nvidia proprietary driver completely before switching to nouveau.
Ahmad Samir is offline   Reply With Quote
Old 02-24-12, 12:16 AM   #8
xorbe
Unbuffered User
 
Join Date: Jun 2005
Posts: 388
Default Re: Native Firefox performance vs Firefox in VirtualBox

Okay, I think I found it. Running Firefox under the logged in user seems fine, but running Firefox as a different user (what I usually do) shows the massive performance problem. Must be X11 pixmap caching or X11 quirk or something. $DISPLAY is :0 for both accounts.

It also seems to be a long standing problem with Firefox vs nVidia drivers:
https://bugzilla.mozilla.org/show_bug.cgi?id=629234

Does Nouveau support triple-head + rotation?
xorbe is offline   Reply With Quote

Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.