Hi, On Sun, Apr 14, 2013 at 8:29 AM, Denis Oliver Kropp <d...@directfb.org>wrote:
> Hi, > > multi application core is running purely on sockets now, no more Fusion > kernel device!!! :-D > Awesome! (Is it still about the higher level socket-based message passing inducing more overhead than a dedicated implementation?) Ilyes > > > > > On 04/14/13 09:32, d...@directfb.org wrote: > > > > New commits: > > > http://git.directfb.org/?p=core/DirectFB.git;a=commit;h=2d4bc33f41acb134c901e12b9150c087cf585865 > > commit 2d4bc33f41acb134c901e12b9150c087cf585865 > > Author: Denis Oliver Kropp <d...@directfb.org> > > Date: Sun Apr 14 09:24:50 2013 +0200 > > > > libfusion: Make builtin multi app support work again (no kernel > module required), use --disable-multi-kernel for configure. > > > > It is working quite well with one slave (df_dok and df_andi work). > > > > Performance is acceptable, sometimes even better than with kernel > device, but still there is > > some potential for optimisations, e.g. implementing user space ref > counting. > > > > One big downside I fixed is when the master crashed and a new one is > started, you no longer > > have to cleanup the socket directory. It is done automatically now. > > > > Many other fixes and additions have been necessary to make this > working: > > > > - Implement FusionCall2 and FusionCall3, owner lookup, init from > (call id)... > > - Add dispatch cleanup implementation from kernel module based code > > - Add many other functions, most of them could be left empty > > - Take over some fixes from kernel module based code, e.g. dispatch > channel != 1 without globals > > > > TODO > > - At the moment shared memory pools are writable, because this > implementation stores some fusionee > > info during fuion_enter() of each slave. > > - There is no security on entry/function level yet (like on ioctl) > > > > Signed-off-by: Denis Oliver Kropp <d...@directfb.org> > > > > lib/fusion/call.c | 429 > +++++++++++++++++++++++++++++++++++------- > > lib/fusion/fusion.c | 274 ++++++++++++++++++++++++--- > > lib/fusion/fusion_internal.h | 6 +- > > lib/fusion/lock.c | 17 ++ > > lib/fusion/protocol.h | 6 +- > > lib/fusion/reactor.c | 2 +- > > lib/fusion/ref.c | 25 +++ > > lib/fusion/ref.h | 18 +- > > lib/fusion/shm/pool.c | 3 +- > > 9 files changed, 671 insertions(+), 109 deletions(-) > > > > _______________________________________________ > > directfb-cvs mailing list > > directfb-...@directfb.org > > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-cvs > > > > > > == Kernel Implementation == > > cyto [~/DFB/Insignia] df_dok > (*) Direct/Thread: Started 'SigHandler' (3780) [CRITICAL - OTHER/0] > <8392704>... > > ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.7.0 |~~~~~~~~~~~~~~~~~~~~~~~~~~ > (c) 2012-2013 DirectFB integrated media GmbH > (c) 2001-2013 The world wide DirectFB Open Source Community > (c) 2000-2004 Convergence (integrated media) GmbH > ---------------------------------------------------------------- > > (*) DirectFB/Core: Multi Application Core. (2013-04-14 05:32) > (*) Direct/Memcpy: Using Generic 64bit memcpy() > (*) Fusion/SHM: Using MADV_REMOVE (3.5.0.0 >= 2.6.19.2) > (*) Fusion/SHM: Shared root (0) is 2232 bytes [0x1000 @ 0x523000000000] > (*) Direct/Thread: Started 'Fusion Dispatch' (3781) [MESSAGING - OTHER/0] > <8392704>... > (*) Direct/Thread: Started 'Fusion Deferred' (3782) [MESSAGING - OTHER/0] > <8392704>... > (*) DirectFB/Genefx: MMX detected and enabled > (*) DirectFB/Graphics: MMX Software Rasterizer 0.7 (directfb.org) > (*) SaWMan/Config: Parsing config file '/opt/dfb/etc/sawmanrc'. > (*) SaWMan/Config: Parsing config file '/home/dok/.sawmanrc'. > (*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'. > > Benchmarking 256x256 on 640x464 ARGB (32bit)... > > Anti-aliased Text 3.003 secs ( 3275.124 > KChars/sec) [ 13.6%] > Anti-aliased Text (blend) 3.031 secs ( 482.217 > KChars/sec) [ 2.3%] > Fill Rectangle 3.075 secs ( 5669.130 > MPixel/sec) [ 1.3%] > Fill Rectangle (blend) 5.303 secs ( 182.902 > MPixel/sec) [ 0.0%] > Fill Rectangles [10] 3.161 secs ( 5763.684 > MPixel/sec) [ 0.3%] > Fill Rectangles [10] (blend) 7.930 secs ( 181.814 > MPixel/sec) [ 0.0%] > Fill Triangles 3.065 secs ( 2724.073 > MPixel/sec) [ 1.9%] > Fill Triangles (blend) 3.927 secs ( 170.223 > MPixel/sec) [ 0.2%] > Draw Rectangle 3.030 secs ( 180.198 > KRects/sec) [ 3.3%] > Draw Rectangle (blend) 3.168 secs ( 38.510 > KRects/sec) [ 0.6%] > Draw Lines [10] 3.005 secs ( 2448.252 > KLines/sec) [ 19.3%] > Draw Lines [10] (blend) 3.020 secs ( 600.662 > KLines/sec) [ 4.3%] > Fill Spans 3.002 secs ( 4475.309 > MPixel/sec) [ 14.0%] > Fill Spans (blend) 3.058 secs ( 177.877 > MPixel/sec) [ 0.6%] > Fill Trapezoids [10] 3.162 secs ( 4248.855 > MPixel/sec) [ 0.3%] > Blit 3.137 secs ( 3386.479 > MPixel/sec) [ 0.9%] > Blit 180 3.285 secs ( 1603.986 > MPixel/sec) [ 0.6%] > Blit colorkeyed 3.306 secs ( 1488.733 > MPixel/sec) [ 0.0%] > Blit destination colorkeyed 3.225 secs ( 1995.545 > MPixel/sec) [ 0.6%] > Blit with format conversion 5.359 secs ( 201.780 > MPixel/sec) [ 0.1%] > Blit with colorizing 4.885 secs ( 183.795 > MPixel/sec) [ 0.0%] > Blit from 32bit (blend) 6.471 secs ( 112.416 > MPixel/sec) [ 0.0%] > Blit from 32bit (blend) with colorizing 6.510 secs ( 97.649 > MPixel/sec) [ 0.1%] > Blit SrcOver (premultiplied source) 3.743 secs ( 630.322 > MPixel/sec) [ 0.0%] > Blit SrcOver (premultiply source) 3.678 secs ( 609.388 > MPixel/sec) [ 0.0%] > Stretch Blit 3.222 secs ( 1647.977 > MPixel/sec) [ 0.6%] > Stretch Blit colorkeyed 3.412 secs ( 954.949 > MPixel/sec) [ 0.2%] > > > == Builtin Implementation == > > cyto [~/DFB/Insignia] df_dok > (*) Direct/Thread: Started 'SigHandler' (13171) [CRITICAL - OTHER/0] > <8392704>... > > ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.7.0 > |~~~~~~~~~~~~~~~~~~~~~~~~~~ > (c) 2012-2013 DirectFB integrated media GmbH > (c) 2001-2013 The world wide DirectFB Open Source Community > (c) 2000-2004 Convergence (integrated media) GmbH > ---------------------------------------------------------------- > > (*) DirectFB/Core: Multi Application Core. (2013-04-14 05:26) > (*) Direct/Memcpy: Using libc memcpy() > (*) Fusion/Init: Builtin Implementation is still experimental! > Crash/Deadlocks might occur! > (*) Fusion/SHM: Using MADV_REMOVE (3.5.0.0 >= 2.6.19.2) > (*) Direct/Thread: Started 'Fusion Dispatch' (13172) [MESSAGING - > OTHER/0] <8392704>... > (*) DirectFB/Genefx: MMX detected and enabled > (*) DirectFB/Graphics: MMX Software Rasterizer 0.7 (directfb.org) > (*) SaWMan/Config: Parsing config file '/opt/dfb/etc/sawmanrc'. > (*) SaWMan/Config: Parsing config file '/home/dok/.sawmanrc'. > (*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'. > > Benchmarking 256x256 on 640x464 ARGB (32bit)... > > Anti-aliased Text 3.004 secs ( 2999.600 > KChars/sec) [ 15.6%] > Anti-aliased Text (blend) 3.024 secs ( 497.619 > KChars/sec) [ 4.6%] > Fill Rectangle 3.060 secs ( 5337.114 > MPixel/sec) [ 1.9%] > Fill Rectangle (blend) 4.896 secs ( 171.335 > MPixel/sec) [ 0.0%] > Fill Rectangles [10] 3.134 secs ( 5708.783 > MPixel/sec) [ 0.6%] > Fill Rectangles [10] (blend) 7.596 secs ( 172.553 > MPixel/sec) [ 0.0%] > Fill Triangles 3.049 secs ( 2752.340 > MPixel/sec) [ 1.9%] > Fill Triangles (blend) 3.817 secs ( 163.110 > MPixel/sec) [ 0.0%] > Draw Rectangle 3.029 secs ( 172.994 > KRects/sec) [ 3.9%] > Draw Rectangle (blend) 3.119 secs ( 40.397 > KRects/sec) [ 0.9%] > Draw Lines [10] 3.005 secs ( 2226.955 > KLines/sec) [ 20.0%] > Draw Lines [10] (blend) 3.017 secs ( 660.258 > KLines/sec) [ 6.6%] > Fill Spans 3.002 secs ( 4187.143 > MPixel/sec) [ 13.0%] > Fill Spans (blend) 3.056 secs ( 169.415 > MPixel/sec) [ 1.9%] > Fill Trapezoids [10] 3.121 secs ( 4241.676 > MPixel/sec) [ 0.6%] > Blit 3.112 secs ( 3190.457 > MPixel/sec) [ 1.2%] > Blit 180 3.224 secs ( 1626.203 > MPixel/sec) [ 0.6%] > Blit colorkeyed 3.246 secs ( 1498.081 > MPixel/sec) [ 0.6%] > Blit destination colorkeyed 3.187 secs ( 1926.803 > MPixel/sec) [ 0.9%] > Blit with format conversion 4.912 secs ( 190.790 > MPixel/sec) [ 0.2%] > Blit with colorizing 4.509 secs ( 174.413 > MPixel/sec) [ 0.0%] > Blit from 32bit (blend) 6.378 secs ( 109.945 > MPixel/sec) [ 0.1%] > Blit from 32bit (blend) with colorizing 6.002 secs ( 94.995 > MPixel/sec) [ 0.0%] > Blit SrcOver (premultiplied source) 3.593 secs ( 607.389 > MPixel/sec) [ 0.0%] > Blit SrcOver (premultiply source) 3.618 secs ( 603.192 > MPixel/sec) [ 0.0%] > Stretch Blit 3.194 secs ( 1616.598 > MPixel/sec) [ 0.9%] > Stretch Blit colorkeyed 3.343 secs ( 930.684 > MPixel/sec) [ 0.2%] > > > > > -- > Denis Oliver Kropp > CEO > DirectFB integrated media GmbH > _______________________________________________ > directfb-dev mailing list > directfb-dev@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev >
_______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev