Skip to contentSkip to conversation

s.m.a.c.k

DISCUSSION Justin Mattock 5 participants 5 messages Feb 14, 2008 – Feb 17, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hello; Thanks for the info on s.m.a.c.k, ("I thought it was part of SELinux"); it seems similar to apparmour! I think I'll stick with SELinux.

I had a quick question about power consumption, I've been doing a lot of testing and seem to find no signs of SELinux or audit causing any wakeups at all to the processor, but then googling some web site I came acrossed said there was a 7% overhead of energy or something in this area. What info do you have in the area of power consumption, wakeups to the processor or load on the processor with SELinux or audit that I should be aware of while Im doing some testing?
regards;
--Justin P. Mattock

#1 lore raw

SELinux power consumption (was Re: s.m.a.c.k)

Quoted 7 lines · Justin Mattock

I had a quick question about power consumption, I've been doing a lot of testing and seem to find no signs of SELinux or audit causing any wakeups at all to the processor, but then googling some web site I came acrossed said there was a 7% overhead of energy or something in this area. What info do you have in the area of power consumption, wakeups to the processor or load on the processor with SELinux or audit that I should be aware of while Im doing some testing?

IIRC, this was something like the setroubleshoot desktop applet, and I'm not sure if it was fixed or not. If not, it needs to be.

(cc'd Arjan, who I think discovered the issue).

- James

Signature · 7 lines
James Morris
<[email protected]>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw

Re: SELinux power consumption (was Re: s.m.a.c.k)

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

Quoted 10 lines · James Morris
Quoted 7 lines · Justin Mattock

I had a quick question about power consumption, I've been doing a lot of testing and seem to find no signs of SELinux or audit causing any wakeups at all to the processor, but then googling some web site I came acrossed said there was a 7% overhead of energy or something in this area. What info do you have in the area of power consumption, wakeups to the processor or load on the processor with SELinux or audit that I should be aware of while Im doing some testing?

Quoted 7 lines

IIRC, this was something like the setroubleshoot desktop applet, and I'm not sure if it was fixed or not. If not, it needs to be.

(cc'd Arjan, who I think discovered the issue).

- James

sealert, the applet for setroubleshoot was a threaded python app. The python library that sealert uses wakes up every .1 seconds to see if the
parent received a signal. This was causing the problem. This has been
fixed in all versions of setroubleshoot, I believe. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAke0OV0ACgkQrlYvE4MpobOo0wCfRoyXVZcYkodfUGlL4qQ62JeF V9oAoNmeRQuQOMZWpaAmJcoliaguUm9X
=F/p4
-----END PGP SIGNATURE-----

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
In reply to Justin Mattock
Quoted 11 lines · Justin Mattock

Hello; Thanks for the info on s.m.a.c.k, ("I thought it was part of SELinux"); it seems similar to apparmour! I think I'll stick with SELinux.
I had a quick question about power consumption, I've been doing a lot of testing and seem to find no signs of SELinux or audit causing any wakeups at all to the processor, but then googling some web site I came acrossed said there was a 7% overhead of energy or something in this area. What info do you have in the area of power consumption, wakeups to the processor or load on the processor with SELinux or audit that I should be aware of while Im doing some testing? regards;

Smack is quite different from AppArmor, but also quite different from SELinux.

SELinux imposes a performance overhead, but it shouldn't especially affect power consumption. You might be thinking of bugs in certain SELinux-related daemons, like setroubleshootd in Fedora, that caused it to spin.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
Quoted 4 lines · Stephen Smalley

SELinux imposes a performance overhead, but it shouldn't especially affect power consumption. You might be thinking of bugs in certain SELinux-related daemons, like setroubleshootd in Fedora, that caused it to spin.

There are a couple of cases where SE Linux will increase power use.

One is the case of broken applications that go into an infinite loop when confronted with an unexpected EPERM. If you have a power hungry CPU (P4 or P-D) then a single process doing that can cost a significant amount of power.

Another is the issue of auditing. When SE Linux denies an operation and doesn't have a dontaudit rule the event will be logged. This involves some CPU use by the kernel and syslogd or auditd and then some disk IO. Obviously in those cases more power is used than otherwise.

Ideally neither of these situations would ever occur on your machines, and in practice they are quite uncommon.

The vast majority of SE Linux access control decisions (on a system without Security Enhanced X) will concern system calls. On most systems the majority of power is taken by IO (moving disk heads takes energy) and application computation (Firefox on my system has accumulated 24 DAYS of CPU time). Neither application computation nor disk IO will be affected by SE Linux (except in the cases of looping programs and logging).

On my desktop machine nothing other than Firefox matters for electricity use. The servers I run at the moment are mostly idle so the electricity use would be pretty close to the minimum for an idle system.

Signature · 9 lines
[email protected]
http://etbe.coker.com.au/          My Blog

http://www.coker.com.au/sponsorship.html Sponsoring Free Software development

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.