On February 4, 2016 08:02:17 AM Dan MacDonald wrote:
> Why does MusE use so much RAM without having a session open?
> 
> I just did a quick comparison of a few Linux-native DAW and how much RAM
> they consume OOTB:
> 
> qtractor ~23MB
> 
> REAPER (Linux-native 5.1 'alpha' version) ~41MB
> 
> MusE 3 ~330 MB
> 
> I'd much rather see the MusE teams limited developer resources go toward
> implementing new features and fixing bugs but it would be nice if MusE
> could become more efficient with resources somewhere down the line too!

Are you running a Debug or Release build?
Should be big differences.

Tested KDE System Monitor on 32-bit *buntu OS: 


Stock packaged QTractor fresh, blank start:
===========================

Summary

The process qtractor (with pid 3880) is using approximately 47.7 MB of memory.
It is using 17.2 MB privately, and a further 93.8 MB that is, or could be, 
shared with other programs.
Dividing up the shared memory between all the processes sharing that memory we 
get a reduced shared memory usage of 30.5 MB. Adding that to the private 
usage, we get the above mentioned total memory footprint of 47.7 MB.
Library Usage

The memory usage of a process is found by adding up the memory usage of each 
of its libraries, plus the process's own heap, stack and any other mappings, 
plus the stack of its 8 threads. 
Private
hide
8512 KB [heap]
1236 KB /usr/lib/i386-linux-gnu/libQtGui.so.4.8.6
1200 KB /usr/bin/qtractor
700 KB  /usr/lib/libkdeui.so.5.13.3
548 KB  /usr/lib/libkdecore.so.5.13.3
488 KB  /usr/lib/libkio.so.5.13.3
216 KB  /usr/lib/i386-linux-gnu/libasound.so.2.0.0
200 KB  /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf
188 KB  /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf
184 KB  /usr/lib/libsoprano.so.4.3.0
184 KB  /usr/lib/i386-linux-gnu/libQtCore.so.4.8.6
152 KB  /usr/lib/libsolid.so.4.13.3
148 KB  /usr/lib/i386-linux-gnu/libicuuc.so.52.1
136 KB  /usr/lib/i386-linux-gnu/libattica.so.0.4.2
132 KB  /usr/lib/i386-linux-gnu/libfftw3.so.3.3.2
124 KB  /usr/lib/i386-linux-gnu/libxml2.so.2.9.1
120 KB  /usr/lib/i386-linux-gnu/libIlmImf.so.6.0.0
...
===========================


MusE-3 Debug build (!) fresh, blank start, 
With -L -p -N -I -2 command-line switches (no plugins at all!) :
===========================

Summary

The process muse3 (with pid 3919) is using approximately 130.4 MB of memory.
It is using 124.6 MB privately, and a further 89.1 MB that is, or could be, 
shared with other programs.
Dividing up the shared memory between all the processes sharing that memory we 
get a reduced shared memory usage of 5.8 MB. Adding that to the private usage, 
we get the above mentioned total memory footprint of 130.4 MB.
Library Usage

The memory usage of a process is found by adding up the memory usage of each 
of its libraries, plus the process's own heap, stack and any other mappings, 
plus the stack of its 7 threads. 
Private
hide
22924 KB        /usr/lib/i386-linux-gnu/libicudata.so.52.1  <<<<< What? <<<<<
15812 KB        [heap]
8268 KB [stack:3929]
8192 KB [stack:3935]
8192 KB [stack:3934]
8192 KB [stack:3920]
6280 KB /usr/lib/i386-linux-gnu/libQt5Widgets.so.5.2.1
5356 KB /usr/lib/i386-linux-gnu/dri/radeon_dri.so
4692 KB /usr/lib/i386-linux-gnu/libQt5Core.so.5.2.1
4444 KB /usr/lib/i386-linux-gnu/libQt5Gui.so.5.2.1
4208 KB /home/tim/muse3-20151228-github-
debug/lib/muse-3.0/modules/libmuse_core.so
2304 KB /usr/lib/locale/locale-archive
1756 KB /usr/lib/i386-linux-gnu/libicui18n.so.52.1
1728 KB /home/tim/muse3-20151228-github-
debug/lib/muse-3.0/modules/libmuse_widgets.so
1500 KB /usr/lib/i386-linux-gnu/libvorbisenc.so.2.0.8
1456 KB /usr/lib/i386-linux-gnu/libsamplerate.so.0.1.8
1204 KB /usr/lib/i386-linux-gnu/libicuuc.so.52.1
1048 KB /home/tim/muse3-20151228-github-
debug/lib/muse-3.0/modules/libmuse_midiedit.so
916 KB  /usr/lib/i386-linux-gnu/libasound.so.2.0.0
896 KB  /lib/i386-linux-gnu/libc-2.19.so
876 KB  /usr/lib/i386-linux-gnu/libX11.so.6.3.0
756 KB  /home/tim/muse3-20151228-github-
debug/lib/muse-3.0/modules/libmuse_icons.so
720 KB  /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
676 KB  /home/tim/muse3-20151228-github-
debug/lib/muse-3.0/modules/libmuse_arranger.so
668 KB  /usr/lib/i386-linux-gnu/qt5/plugins/platforms/libqxcb.so
640 KB  /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Bold.ttf
624 KB  /lib/i386-linux-gnu/libglib-2.0.so.0.4002.0
544 KB  /home/tim/muse3-20151228-github-
debug/lib/muse-3.0/modules/libmuse_mixer.so
...
====================


I had thought the size was because we load all discovered plugins 
 into memory, but that doesn't seem to be the case since 
 I disabled loading of plugins (unless it's still loading them?).

Notice the big 23MB libicu thing:
"ICU - International Components for Unicode."
Not sure if it's because I'm building in debug mode,
 but it sure is a whopper!

IIRC building MusE in Release mode should be smaller.

Tim.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Lmuse-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmuse-developer

Reply via email to