Hello Norman,
Here is a .iso file of the VSOS system. If you can't build and run from the source code, you can try this:
http://pan.baidu.com/s/1hq8Aews

Thank you for you help.

Shuo Wang, 
University of Chinese Academy of Sciences.
 


------------------  Original Mail ------------------
"genode-main"<genode-main@lists.sourceforge.net>;
Re: Some questions about performance optimization related toGUIframework on Genode

Hello Norman,

I'm sorry for my carelessness.

L4_UTCB_USER_ID_OFFSET is defined in

\base-foc\contrib\l4\pkg\l4sys\include\ARCH-x86\utcb.h

as

  L4_UTCB_USER_ID_OFFSET = 62 * sizeof(l4_umword_t),


Shuo Wang,
University of Chinese Academy of Sciences.
 


------------------ Original Mail ------------------
"norman.feske";<norman.feske@...1...>;
 "genode-main"<genode-main@lists.sourceforge.net>;
Re: Some questions about performance optimization related toGUIframework on Genode

Hello Shuo Wang,

> In Genode, it takes approximately 3 seconds for qt_launchpad to launch,
> and more than 1 seconds for other apps to launch. This is too slow, so
> my task is to reduce the launch time of qt_launchpad and apps. But I
> don't know what the reason of the low performance is. So I turn to you
> for some advice.

I cannot reproduce this observation. Please give the qt5 run script of
Genode 14.08 a try. When started on real hardware (not on Qemu!), Qt5
applications, including the qt_launchpad, open up instantly. I guess
that you performed your measurement either on Qemu, or using your
group's branch of Genode.

Speaking of this branch, I still could not get it running (see my last
email about the missing definition of L4_UTCB_USER_ID_OFFSET). However,
by quickly skimming over it, I have seen modifications that may impede
performance quite significantly. E.g., the following addition in the RPC
server code:


https://github.com/kloisiie/vsos/blob/master/base/include/base/rpc_server.h#L145-166

Not knowing the reasoning behind this code, I suspect that it goes
against the grain of Genode in several ways.

* It seems to introduce the notion of global IDs, which Genode tries
  to avoid to counter problems like "ambient authority".

* With my limited understanding of your changes, it looks like your
  group implemented a classical ACL-policy mechanism right into the
  heart of Genode. In my opinion, this approach contradicts with
  the Genode's capability-based access-control model. I would
  love to know the rationale behind this line of work and discuss
  possible alternative solutions that are coherent with Genode's
  design.

* The code path is performance-critical, yet it performs slow string
  compare operations and RPC calls.

* It mixes different levels of abstractions. 'rpc_server.h' contains
  the low-level message-dispatching mechanism whereas the notions of
  objects, sessions, and connections are introduced on top of that.
  By creating a "Monitor_connection" object within the low-level code
  path, the low-level code becomes reliant on higher-level
  abstractions that are built on top of the low-level code. Such
  circular dependencies are not good.

* It is specific to one particular kernel.

Given the huge amout of changes in your branch, there might be a good
chance that other performance-critical parts were changed for the worse,
too. To see whether the performance problems are actually on Genode's
account or stemming from the changes of your group, please check that
the problems can be reproduced on the unmodified version of Genode.

Best regards
Norman

--
Dr.-Ing. Norman Feske
Genode Labs

http://www.genode-labs.com · http://genode.org

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth

------------------------------------------------------------------------------
Slashdot TV. 
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
genode-main mailing list
genode-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/genode-main