From: Carsten Haitzler (The Rasterman) <raster@rasterman.com>
To: openembedded-devel@lists.openembedded.org
Cc: openembedded-devel@openembedded.org,
Koen Kooi <k.kooi@student.utwente.nl>
Subject: Re: Requiring root access for windowmanagers?
Date: Sat, 29 Nov 2008 01:04:22 +1100 [thread overview]
Message-ID: <20081129010422.ecd2adb6.raster@rasterman.com> (raw)
In-Reply-To: <ggonls$p8a$1@ger.gmane.org>
On Fri, 28 Nov 2008 13:20:12 +0100 Koen Kooi <k.kooi@student.utwente.nl>
babbled:
> Hi,
>
> What's the consensus on requiring root access for running an OE built
> windowmanager?
>
> Case in point: e-wm does 'renice -10', which only root is allow to do.
>
> Proposal: remove the 'renice' so regular users can start a window
> manager as well.
i did this specifically for performance. basically it makes things MUCH
smoother. the problem is thngs like frameworkd (python blob) in the background
eats a mountainload of cpu slowing startup down, making the system pretty bad
responsiveness-wise etc. i thought about it a bit and went "hey. on devices
the USER is king. the USER should always be obeyed ASAP and as smoothly as
possible". if some system daemon wants to eat cpu - it can take a back seat to
the user being obeyed. so upping e's priority helped immensely. suddenly
animations didn't stutter when launching apps or when background daemons decided
to chug along and eat lots of cpu etc.
as such you either lower the priority of all daemon procs - or raise (reduce
niceness) of the procs you want obeying the user asap.
so unless you have a better way to do this... (a normal user can still run -
the command just fails but the script marches on and you dont get a "less
nice" (higher priority) wm). so as such it wont stop a normal user. they just
lose smoothness.
of course i'm open to suggestions (note i do think you could have a much more
complex system but what i did was really simple and got the task done with no
breakage) :)
--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) raster@rasterman.com
next prev parent reply other threads:[~2008-11-28 14:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-28 12:20 Requiring root access for windowmanagers? Koen Kooi
2008-11-28 13:26 ` Koen Kooi
2008-11-28 14:04 ` Carsten Haitzler [this message]
2008-11-29 20:52 ` Stanislav Brabec
2008-11-29 21:39 ` Carsten Haitzler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081129010422.ecd2adb6.raster@rasterman.com \
--to=raster@rasterman.com \
--cc=k.kooi@student.utwente.nl \
--cc=openembedded-devel@lists.openembedded.org \
--cc=openembedded-devel@openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.