Skip to contentSkip to conversation

Do we really want shared Xserver script for all machines?

DISCUSSION Martin Jansa 5 participants 8 messages Apr 16, 2010 – Apr 20, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

on Openmoko Freerunner om-gta02 Xserver script takes about 3s on every boot
http://build.shr-project.org/tests/jama/bootchart-2.6.32.9.r1.png

it's started from /etc/init.d/xserver-nodm and with eliminated Xserver call by passing xinit call directly with right Xorg params I get this

http://build.shr-project.org/tests/jama/bootchart-2.6.32.9.r3.png

My question is:

should I commit simplified versions of Xserver script xserver-kdrive-common/xserver-kdrive-common/Xserver to xserver-kdrive-common/xserver-kdrive-common/om-gta02/Xserver and the same for other devices supported in Xserver (to save grep,awk call).

or do it only for om-gta02 (maybe even in xserver-kdrive-common/xserver-nodm-init/xserver-nodm ) and those who care about boot time will follow?

Maybe calling fallback_screen_arg only where it's really needed would be good enough optimization, without the cost of loosing PACKAGE_ARCH = "all".

Cheers,

Signature · 3 lines
uin:136542059                jid:[email protected]
Jansa Martin                 sip:[email protected] 
JaMa                         
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wouldn't it be better to merge the scripts from xserver-kdrive-common and xserver-common and then fix all the sed/awk calls in one place?

Quoted 24 lines · Martin Jansa

Hi,

on Openmoko Freerunner om-gta02 Xserver script takes about 3s on every boot
http://build.shr-project.org/tests/jama/bootchart-2.6.32.9.r1.png

it's started from /etc/init.d/xserver-nodm and with eliminated Xserver call by passing xinit call directly with right Xorg params I get this

http://build.shr-project.org/tests/jama/bootchart-2.6.32.9.r3.png

My question is:

should I commit simplified versions of Xserver script xserver-kdrive-common/xserver-kdrive-common/Xserver to xserver-kdrive-common/xserver-kdrive-common/om-gta02/Xserver and the same for other devices supported in Xserver (to save grep,awk call).

or do it only for om-gta02 (maybe even in xserver-kdrive-common/xserver-nodm-init/xserver-nodm ) and those who care about boot time will follow?

Quoted 6 lines

Maybe calling fallback_screen_arg only where it's really needed would be good enough optimization, without the cost of loosing PACKAGE_ARCH = "all".

Cheers,

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLyGVUMkyGM64RGpERAiyrAJwJHKahFvUdK8l+aYIgBhb2UMlwxwCgkzEF sXq4fCHgeNYcSUlIXT/aKp4=
=Ft6E
-----END PGP SIGNATURE-----

#5 lore raw
In reply to Martin Jansa
Quoted 10 lines · Martin Jansa

Hi,

on Openmoko Freerunner om-gta02 Xserver script takes about 3s on every boot
http://build.shr-project.org/tests/jama/bootchart-2.6.32.9.r1.png

it's started from /etc/init.d/xserver-nodm and with eliminated Xserver call by passing xinit call directly with right Xorg params I get this

http://build.shr-project.org/tests/jama/bootchart-2.6.32.9.r3.png

Sorry to bother with off-topic post, but how these boot charts are built? Really nice thing to have...

#2 lore raw
In reply to Koen Kooi

Dnia piątek, 16 kwietnia 2010 o 15:25:40 Koen Kooi napisał(a):

Quoted 2 lines

Wouldn't it be better to merge the scripts from xserver-kdrive-common
and xserver-common and then fix all the sed/awk calls in one place?

I did most of it long time ago and stored as xserver-common 1.30. Script got simplified, supports Xorg and KDrive, replaces xserver-kdrive-common, allows to set variables in /etc/default/xserver instead of patching /etc/X11/Xserver file etc.

I did send RFC about it on 3rd August 2009. Merged it into stable/2009 in October 2009 as we used it on BUG 1.x and 2.0 devices.

I merged my improvements into upstream which gave us 1.31, 1.32 and 1.33 versions (1.30/upstream != 1.30/OE as it was base for my improvements which landed in next upstream versions).

So far I did not noticed anyone using it. For those which use xserver-nodm-init script to boot into root X11 session: you need newer version from BugLabs repository:

svn://svn.buglabs.net/bug/trunk/com.buglabs.build.oe/meta-bug/packages/xserver-nodm-init

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
#3 lore raw
Quoted 4 lines · Marcin Juszkiewicz

I did send RFC about it on 3rd August 2009. Merged it into stable/2009 in October 2009 as we used it on BUG 1.x and 2.0 devices.

So far I did not noticed anyone using it. For those which use

I guess this is because task-x11-utils pulls xserver-kdrive-common unconditionaly.. I've added variable there for distro to pick provider easily and after some test I'll send it for review.

Quoted 4 lines

xserver-nodm-init script to boot into root X11 session: you need newer version from BugLabs repository:

svn://svn.buglabs.net/bug/trunk/com.buglabs.build.oe/meta-bug/packages/xserver-nodm-init

In patch I have now, I renamed old version to 1.0 and added version from buglabs as 2.0 with D_P -1. Not best solution as it allows people to use old xserver-kdrive-common + this newer nodm-init, but comment above D_P setting should be enough for maintainers to notice.

Thanks hrw, pity that we overlooked xserver-common for so long..

Regards,

Signature · 3 lines
uin:136542059                jid:[email protected]
Jansa Martin                 sip:[email protected] 
JaMa                         
#6 lore raw

[OT] bootchart (was: Do we really want shared Xserver script for all machines?)

In reply to Sergey Lapin

Am Freitag, den 16.04.2010, 17:39 +0400 schrieb Sergey Lapin:

[…]

Quoted 2 lines

Sorry to bother with off-topic post, but how these boot charts are built? Really nice thing to have...

Use bootchart [1]?

Thanks,

Paul

[1] http://www.bootchart.org/

#7 lore raw

Re: [OT] bootchart (was: Do we really want shared Xserver script for all machines?)

Quoted 8 lines · Paul Menzel

Am Freitag, den 16.04.2010, 17:39 +0400 schrieb Sergey Lapin:

[…]

Quoted 2 lines

Sorry to bother with off-topic post, but how these boot charts are built? Really nice thing to have...

Use bootchart [1]?

yes,

and to be OE specific I used
recipes/bootchart-lite/bootchart-lite_svn.bb

and for freerunner slightly changed Qi bootloader to pass it as init.
http://gitorious.org/~jama/angstrom/jama-shr-experimental/commit/03c69b54cf1675a30e2d71d36e4662611982a5c6

then tar and scp resulting files back to computer and run bootchart to generate graph.

Signature · 3 lines
uin:136542059                jid:[email protected]
Jansa Martin                 sip:[email protected] 
JaMa                         
#4 lore raw
In reply to Marcin Juszkiewicz
Quoted 3 lines · Marcin Juszkiewicz

Dnia piątek, 16 kwietnia 2010 o 15:25:40 Koen Kooi napisał(a):

Quoted 2 lines

Wouldn't it be better to merge the scripts from xserver-kdrive-common
and xserver-common and then fix all the sed/awk calls in one place?

Hi,

it's better with xserver-common, here are bootcharts again from Freerunner

http://build.shr-project.org/tests/jama/bootchart-2.6.32.11.xserver-common.png

and without udevd/hald combo:
http://build.shr-project.org/tests/jama/bootchart-2.6.32.11.xserver-common.no-udev.png

I'll add /etc/X11/Xsession.d/90xXWindowManager and /etc/X11/Xsession.d/89xTs_Calibrate from xserver-kdrive-common to xserver-common (if you don't mind or have better place for them) and push it (enabled by default for SHR).

Thanks,

Signature · 3 lines
uin:136542059                jid:[email protected]
Jansa Martin                 sip:[email protected] 
JaMa