On Mittwoch, 15. April 2020 16:47:06 CEST joo bian wrote:
> Here is my first attempt on profiling the SFZ engine as you recommended,
> using Oprofile and the settings you mentioned. This was done with the
> default setting of LS, i.e. 64 voice polyphony and 90 max voices.
> 
> After the profiling, I get the following report
> ```CPU: AMD64 family15h, speed 2100 MHz (estimated)
> Counted CPU_CLK_UNHALTED events (CPU Clocks not Halted) with a unit mask of
> 0x00 (No unit mask) count 100000 CPU_CLK_UNHALT...|
>   samples|      %|
> ------------------
>   2857302 99.9834 bash
>     CPU_CLK_UNHALT...|
>       samples|      %|
>     ------------------
>       2112992 73.9506 liblinuxsampler.so.5.0.0
>        602207 21.0761 kallsyms
>         49469  1.7313 libjack.so.0.1.0
>         49023  1.7157 libc-2.31.so
>         14103  0.4936 libstdc++.so.6.0.28
>         11851  0.4148 libsndfile.so.1.0.28
>          5947  0.2081 [vdso] (tgid:74493
> range:0x7ffc0e633000-0x7ffc0e633fff) 5729  0.2005 ext4
>          3855  0.1349 libpthread-2.31.so
>          1676  0.0587 libm-2.31.so
>           266  0.0093 ld-2.31.so
>            77  0.0027 kvm
>            42  0.0015 bash
>            30  0.0010 lt-linuxsampler
>            24 8.4e-04 libgcc_s.so.1
>             3 1.0e-04 jbd2
>             2 7.0e-05 libdb-5.3.so
>             2 7.0e-05 libmvec-2.31.so
>             1 3.5e-05 filter.so
>             1 3.5e-05 libncursesw.so.6.2
>             1 3.5e-05 libreadline.so.8.0
>             1 3.5e-05 librt-2.31.so

That's the default view type of most profilers which just shows the timing for 
the individual DLLs.

What we rather need is the timing of the individual functions inside of 
liblinuxsampler. That's the relevant information to see where exactly in the 
SFZ engine the sampler consumes too much CPU time.

> ```
> I also got messages from LinuxSampler on the terminal occasionally:
> ```DiskThread: there was no free slot
> Disk stream order failed!
> EngineBase: ERROR, voice stealing didn't work out!
> DiskThread: there was no free slot
> Disk stream order failed!
> EngineBase: ERROR, voice stealing didn't work out!
> DiskThread: there was no free slot
> Disk stream order failed!
> EngineBase: ERROR, voice stealing didn't work out!
> DiskThread: there was no free slot
> Disk stream order failed!
> EngineBase: ERROR, voice stealing didn't work out!
> ```

Yeah, ignore them for now. You probably get them when switching sounds while 
still holding some notes.

CU
Christian




_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to