From: john moser <bluefoxicy@linux.net>
To: linux-kernel@vger.kernel.org
Subject: US/KS performance question
Date: Wed, 4 Feb 2004 21:17:36 -0800 (PST) [thread overview]
Message-ID: <20040205051736.89307CF33@sitemail.everyone.net> (raw)
CC me all replies.
I'm doing a little work on ACLs. Instead of a LSM, I'm writing up a little bit
of code and some hooks to allow a userspace daemon to do the decision making.
The plan is as follows:
- acld connects to kernel, sleeps.
- Kernel needs to ask something of acld, ques request in US
- Kernel wakes acld up
- Kernel puts the requesting thread to sleep
- acld processes requests
- Each request processed is followed by a syscall to the kernel with the result
- Kernel takes the result, finds the thread that wanted it, wakes thread up
- When there's no more requests, acld sleeps
Now, I have two major bottlenecks:
- Userspace acld MAC daemon has to make a syscall and pass data from US to KS
- Kernel has to sometimes wake up acld and always has to wake up the requesting
thread after getting the result back from acld
Any ideas on how much overhead this could add? If it takes only a few more
microseconds to wake up acld, sleep the process, process the syscall, and finally
wake the process; as opposed to calling a kernel function to make the decision,
then it should be okay. If it's going to be some 10 or 20 miliseconds per request,
I might have problems. If it's going to take more than 100 mS for this, I need
a redesign.
_____________________________________________________________
Linux.Net -->Open Source to everyone
Powered by Linare Corporation
http://www.linare.com/
reply other threads:[~2004-02-05 5:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20040205051736.89307CF33@sitemail.everyone.net \
--to=bluefoxicy@linux.net \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®