[VBox] Why VirtualBox process is so large?

2013-12-13 Thread Yuri
I have the VM that is allocated 512MB of base memory for the guest, but 
its total memory size on host is 1263MB. This seems excessive.

What is the normal memory overhead for the VM? Is there a way to reduce it?
Documentation doesn't elaborate on this.

virtualbox-4.2.18
9.2

Yuri
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Re: [VBox] Why VirtualBox process is so large?

2013-12-13 Thread Bernhard Fröhlich
On Fri, Dec 13, 2013 at 11:02 AM, Yuri y...@rawbw.com wrote:
 I have the VM that is allocated 512MB of base memory for the guest, but its
 total memory size on host is 1263MB. This seems excessive.
 What is the normal memory overhead for the VM? Is there a way to reduce it?
 Documentation doesn't elaborate on this.

 virtualbox-4.2.18
 9.2

The used RAM is usually VM RAM + GPU RAM + (QT4 GUI) + overhead. How
did you measure those 1263MB on the host?

-- 
Bernhard Froehlich
http://www.bluelife.at/
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Re: [VBox] Why VirtualBox process is so large?

2013-12-13 Thread Yuri

On 12/13/2013 04:50, Bernhard Fröhlich wrote:

The used RAM is usually VM RAM + GPU RAM + (QT4 GUI) + overhead. How
did you measure those 1263MB on the host?


This is the total size of the VirtualBox process for the VM, no Qt GUI. 
I expected it to be somewhat higher than 512MB, but not 2.5 times.


Yuri
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Re: [VBox] Why VirtualBox process is so large?

2013-12-13 Thread Yuri

On 12/13/2013 02:02, Yuri wrote:
I have the VM that is allocated 512MB of base memory for the guest, 
but its total memory size on host is 1263MB. This seems excessive.
What is the normal memory overhead for the VM? Is there a way to 
reduce it?

Documentation doesn't elaborate on this.


512MB machine looks in ps(1) like this (linux guest):
5717 yuri 21  200  1263M   444M select  0   9:06 88.48% 
VirtualBox

And 1024MB machine looks like this (FreeBSD guest):
13565 yuri   18  200  1720M  1135M uwait   5  71:13 4.05% 
VirtualBox


Process sizes shouldn't be that high in both cases. My guess is that 
VBox takes freedom to allocate an additional disk cache maybe? Then this 
should be configurable. What other memory could this be? Leak?


As a comparison, VMWare lists the sample overhead memories: 
http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.resmgmt.doc_50%2FGUID-B42C72C1-F8D5-40DC-93D1-FB31849B1114.html
For 1GB machine with 1CPU it would be ~26MB. We need to understand why 
VBox goes so much higher.


Yuri
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


about www/opera port

2013-12-13 Thread Nikolai Lifanov
I noticed on FreeBSD 10.x, Opera depends on compat9x for libstdc++.so.6.
However, if I download the binary from opera.com, it runs just fine with
libstdc++.so.6 provided by lang/gcc port.

libstdc++.so.6 = /usr/local/lib/gcc46/libstdc++.so.6


The problem is, on 10, emulators/virtualbox-ose conflicts with compat9x
and requires the library from gcc.

Could you switch the source for libstdc++.so.6 from misc/compat9x to
lang/gcc please? This way Opera and VirtualBox can be co-installed.

Thank you.

- Nikolai Lifanov
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Re: [VBox] Why VirtualBox process is so large?

2013-12-13 Thread Bernhard Fröhlich
Am 13.12.2013 18:13 schrieb Yuri y...@rawbw.com:

 On 12/13/2013 02:02, Yuri wrote:

 I have the VM that is allocated 512MB of base memory for the guest, but
its total memory size on host is 1263MB. This seems excessive.
 What is the normal memory overhead for the VM? Is there a way to reduce
it?
 Documentation doesn't elaborate on this.


 512MB machine looks in ps(1) like this (linux guest):
 5717 yuri 21  200  1263M   444M select  0   9:06 88.48%
VirtualBox
 And 1024MB machine looks like this (FreeBSD guest):
 13565 yuri   18  200  1720M  1135M uwait   5  71:13 4.05%
VirtualBox

 Process sizes shouldn't be that high in both cases. My guess is that VBox
takes freedom to allocate an additional disk cache maybe? Then this should
be configurable. What other memory could this be? Leak?

 As a comparison, VMWare lists the sample overhead memories:
http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.resmgmt.doc_50%2FGUID-B42C72C1-F8D5-40DC-93D1-FB31849B1114.html
 For 1GB machine with 1CPU it would be ~26MB. We need to understand why
VBox goes so much higher.

This is a bug on your side. Please look at the ps manpage to learn about
the different columns and what they mean.
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Re: virtualbox-ose segfaults on 10.0

2013-12-13 Thread Bernhard Fröhlich
Am 12.12.2013 21:24 schrieb Joe Maloney jpm...@gmail.com:

 I cannot get the qt4 interface to start in FreeBSD 10.  VboxManage seems
 to work fine.  This was just tested with the latest port a few hours ago
 after Makefile change 336267 Virtualbox 4.2.20.  Below is a backtrace.

 Joe Maloney

 [jmaloney@jm-desk-pc] ~% sudo gdb /usr/local/lib/virtualbox/VirtualBox
 GNU gdb 6.1.1 [FreeBSD]
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you
 are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for
 details.
 This GDB was configured as amd64-marcel-freebsd...
 (gdb) run
 Starting program: /usr/local/lib/virtualbox/VirtualBox
 [New LWP 101456]
 [New Thread 801c06400 (LWP 101456/VirtualBox)]
 Type Manifest File: /root/.VirtualBox/xpti.dat
 nsNativeComponentLoader: autoregistering begins.
 nsNativeComponentLoader: autoregistering succeeded
 nNCL: registering deferred (0)
 [New Thread 801c11400 (LWP 100154/VirtualBox)]
 [New Thread 801c0b400 (LWP 101680/VirtualBox)]

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 801c06400 (LWP 101456/VirtualBox)]
 0x in ?? ()
 (gdb) backtrace
 #0  0x in ?? ()
 #1  0x000800afc072 in __dynamic_cast (src_ptr=0x7fffc7d0,
 src_type=0x8080087c0, dst_type=0x808d1cea0, src2dst=0)
 at ../../.././../gcc-4.6.4/libstdc++-v3/libsupc++/dyncast.cc:61
 #2  0x00081142e759 in QtCurve::Style::eventFilter ()
 from /usr/local/lib/qt4/plugins/styles/qtcurve.so
 #3  0x000807c987cd in
 QCoreApplicationPrivate::sendThroughObjectEventFilters ()
 from /usr/local/lib/qt4/libQtCore.so.4
 #4  0x00080822750a in QApplicationPrivate::notify_helper ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #5  0x00080822a1f8 in QApplication::notify ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #6  0x000807c984e5 in QCoreApplication::notifyInternal ()
 from /usr/local/lib/qt4/libQtCore.so.4
 #7  0x000808266ec8 in QWidgetPrivate::propagatePaletteChange ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #8  0x00080826baa1 in QWidget::setBackgroundRole ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #9  0x00081142a33f in QtCurve::Style::polish ()
 from /usr/local/lib/qt4/plugins/styles/qtcurve.so
 #10 0x000808273e21 in QWidget::event ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #11 0x00080864567f in QMenuBar::event ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #12 0x00080822751b in QApplicationPrivate::notify_helper ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #13 0x00080822a1f8 in QApplication::notify ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #14 0x000807c984e5 in QCoreApplication::notifyInternal ()
 from /usr/local/lib/qt4/libQtCore.so.4
 #15 0x00080826965e in QWidget::ensurePolished ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #16 0x00080826970f in QWidget::ensurePolished ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #17 0x00080824f39d in QLayout::totalMinimumSize ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #18 0x000808273569 in QWidget::minimumSizeHint ()
 from /usr/local/lib/qt4/libQtGui.so.4
 #19 0x00080548c8cc in UISelectorWindow::loadSettings
 (this=0x801ed4000)

 at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.20/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp:135
 #20 0x000805485d4e in UISelectorWindow (this=0x801ed4000,
 ppSelf=0x805c98300, pParent=0x0, flags={i = -10976})

 at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.20/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp:102
 #21 0x0008053d32fa in VBoxGlobal::selectorWnd (this=0x805c981e0)
 from /usr/local/lib/virtualbox/VirtualBox.so
 #22 0x000805367f84 in TrustedMain (argc=1, argv=0x7fffd8b8) at
 qglobal.h:1510
 #23 0x004024cb in SUPR3HardenedMain (pszProgName=0x404d14
 VirtualBox, fFlags=1, argc=1, argv=0x7fffd8b8,
 envp=0x7fffd8c8)

 at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.20/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp:346
 #24 0x004013cf in main (argc=1, argv=0x7fffd8b8,
 envp=0x7fffd8c8)

 at
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.20/src/VBox/Frontends/VirtualBox/src/hardenedmain.cpp:32

Could you please send me the output of: ldd /usr/local/binVirtualBox
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


virtualbox-ose-kmod not compiling under 10.0-RC1

2013-12-13 Thread Marcus Reid
Hello,

Does virtualbox-ose-kmod build for you under 10.0-RC1?  I get another
one of those vm_map_find() got 9 expected 10 errors.

Thanks,

Marcus
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org


Re: virtualbox-ose segfaults on 10.0

2013-12-13 Thread Joe Maloney
[jmaloney@jm-desk-pc] ~% sudo ldd /usr/local/bin/VirtualBox 
Password:
/usr/local/bin/VirtualBox:
libthr.so.3 = /lib/libthr.so.3 (0x800822000)
libstdc++.so.6 = /usr/local/lib/gcc46/libstdc++.so.6 (0x800a47000)
libm.so.5 = /lib/libm.so.5 (0x800d4b000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x800f71000)
libc.so.7 = /lib/libc.so.7 (0x80117e000)

On Dec 13, 2013, at 5:02 PM, Bernhard Fröhlich de...@bluelife.at wrote:

 
 Am 12.12.2013 21:24 schrieb Joe Maloney jpm...@gmail.com:
 
  I cannot get the qt4 interface to start in FreeBSD 10.  VboxManage seems
  to work fine.  This was just tested with the latest port a few hours ago
  after Makefile change 336267 Virtualbox 4.2.20.  Below is a backtrace.
 
  Joe Maloney
 
  [jmaloney@jm-desk-pc] ~% sudo gdb /usr/local/lib/virtualbox/VirtualBox
  GNU gdb 6.1.1 [FreeBSD]
  Copyright 2004 Free Software Foundation, Inc.
  GDB is free software, covered by the GNU General Public License, and you
  are
  welcome to change it and/or distribute copies of it under certain
  conditions.
  Type show copying to see the conditions.
  There is absolutely no warranty for GDB.  Type show warranty for
  details.
  This GDB was configured as amd64-marcel-freebsd...
  (gdb) run
  Starting program: /usr/local/lib/virtualbox/VirtualBox
  [New LWP 101456]
  [New Thread 801c06400 (LWP 101456/VirtualBox)]
  Type Manifest File: /root/.VirtualBox/xpti.dat
  nsNativeComponentLoader: autoregistering begins.
  nsNativeComponentLoader: autoregistering succeeded
  nNCL: registering deferred (0)
  [New Thread 801c11400 (LWP 100154/VirtualBox)]
  [New Thread 801c0b400 (LWP 101680/VirtualBox)]
 
  Program received signal SIGSEGV, Segmentation fault.
  [Switching to Thread 801c06400 (LWP 101456/VirtualBox)]
  0x in ?? ()
  (gdb) backtrace
  #0  0x in ?? ()
  #1  0x000800afc072 in __dynamic_cast (src_ptr=0x7fffc7d0,
  src_type=0x8080087c0, dst_type=0x808d1cea0, src2dst=0)
  at ../../.././../gcc-4.6.4/libstdc++-v3/libsupc++/dyncast.cc:61
  #2  0x00081142e759 in QtCurve::Style::eventFilter ()
  from /usr/local/lib/qt4/plugins/styles/qtcurve.so
  #3  0x000807c987cd in
  QCoreApplicationPrivate::sendThroughObjectEventFilters ()
  from /usr/local/lib/qt4/libQtCore.so.4
  #4  0x00080822750a in QApplicationPrivate::notify_helper ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #5  0x00080822a1f8 in QApplication::notify ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #6  0x000807c984e5 in QCoreApplication::notifyInternal ()
  from /usr/local/lib/qt4/libQtCore.so.4
  #7  0x000808266ec8 in QWidgetPrivate::propagatePaletteChange ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #8  0x00080826baa1 in QWidget::setBackgroundRole ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #9  0x00081142a33f in QtCurve::Style::polish ()
  from /usr/local/lib/qt4/plugins/styles/qtcurve.so
  #10 0x000808273e21 in QWidget::event ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #11 0x00080864567f in QMenuBar::event ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #12 0x00080822751b in QApplicationPrivate::notify_helper ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #13 0x00080822a1f8 in QApplication::notify ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #14 0x000807c984e5 in QCoreApplication::notifyInternal ()
  from /usr/local/lib/qt4/libQtCore.so.4
  #15 0x00080826965e in QWidget::ensurePolished ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #16 0x00080826970f in QWidget::ensurePolished ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #17 0x00080824f39d in QLayout::totalMinimumSize ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #18 0x000808273569 in QWidget::minimumSizeHint ()
  from /usr/local/lib/qt4/libQtGui.so.4
  #19 0x00080548c8cc in UISelectorWindow::loadSettings
  (this=0x801ed4000)
 
  at 
  /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.20/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp:135
  #20 0x000805485d4e in UISelectorWindow (this=0x801ed4000,
  ppSelf=0x805c98300, pParent=0x0, flags={i = -10976})
 
  at 
  /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.20/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp:102
  #21 0x0008053d32fa in VBoxGlobal::selectorWnd (this=0x805c981e0)
  from /usr/local/lib/virtualbox/VirtualBox.so
  #22 0x000805367f84 in TrustedMain (argc=1, argv=0x7fffd8b8) at
  qglobal.h:1510
  #23 0x004024cb in SUPR3HardenedMain (pszProgName=0x404d14
  VirtualBox, fFlags=1, argc=1, argv=0x7fffd8b8,
  envp=0x7fffd8c8)
 
  at 
  /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.20/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp:346
  #24 0x004013cf in main (argc=1, argv=0x7fffd8b8,
  envp=0x7fffd8c8)
 
  at 
  /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.20/src/VBox/Frontends/VirtualBox/src/hardenedmain.cpp:32
 
 Could you please send me the output of: ldd