public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Is there a standard sysctl-like way to modify sysfs files at boot time?
@ 2010-12-27 11:37 Mark David Dumlao
  2010-12-28 11:28 ` Mick
  2010-12-29  1:54 ` Volker Armin Hemmann
  0 siblings, 2 replies; 6+ messages in thread
From: Mark David Dumlao @ 2010-12-27 11:37 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 683 bytes --]

I want to do this:
http://blog.internetnews.com/skerner/2010/11/forget-200-lines-red-hat-speed.html

in userspace, but automate it at boot time. it requires that I create and
mount the cgroup subsystem in sysfs and sounds a lot like something that I'd
do in sysctl for /proc/sys, but for sysfs rather than procfs.

The only thing that comes to mind is to append to the local init script, but
it's so close to what sysctl does that I feel like someone's probably
written some tool for it. Is there one?
-- 
This email is:    [ ] actionable   [ ] fyi        [x] social
Response needed:  [x] yes          [ ] up to you  [ ] no
Time-sensitive:   [ ] immediate    [ ] soon       [x] none

[-- Attachment #2: Type: text/html, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Is there a standard sysctl-like way to modify sysfs files at boot time?
  2010-12-27 11:37 [gentoo-user] Is there a standard sysctl-like way to modify sysfs files at boot time? Mark David Dumlao
@ 2010-12-28 11:28 ` Mick
  2010-12-29  1:07   ` Adam Carter
  2010-12-29  1:54 ` Volker Armin Hemmann
  1 sibling, 1 reply; 6+ messages in thread
From: Mick @ 2010-12-28 11:28 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 757 bytes --]

On Monday 27 December 2010 11:37:29 Mark David Dumlao wrote:
> I want to do this:
> http://blog.internetnews.com/skerner/2010/11/forget-200-lines-red-hat-speed
> .html
> 
> in userspace, but automate it at boot time. it requires that I create and
> mount the cgroup subsystem in sysfs and sounds a lot like something that
> I'd do in sysctl for /proc/sys, but for sysfs rather than procfs.
> 
> The only thing that comes to mind is to append to the local init script,
> but it's so close to what sysctl does that I feel like someone's probably
> written some tool for it. Is there one?

If there is, I haven't seen it.  Perhaps you can try adding it to 
/etc/conf.d/local.start and report back if it behaves as expected?
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Is there a standard sysctl-like way to modify sysfs files at boot time?
  2010-12-28 11:28 ` Mick
@ 2010-12-29  1:07   ` Adam Carter
  0 siblings, 0 replies; 6+ messages in thread
From: Adam Carter @ 2010-12-29  1:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 696 bytes --]

> On Monday 27 December 2010 11:37:29 Mark David Dumlao wrote:
> > I want to do this:
> >
> http://blog.internetnews.com/skerner/2010/11/forget-200-lines-red-hat-speed
> > .html
> >
> > in userspace, but automate it at boot time. it requires that I create and
> > mount the cgroup subsystem in sysfs and sounds a lot like something that
> > I'd do in sysctl for /proc/sys, but for sysfs rather than procfs.
> >
> > The only thing that comes to mind is to append to the local init script,
> > but it's so close to what sysctl does that I feel like someone's probably
> > written some tool for it. Is there one?
>
>
Have you read;
http://en.gentoo-wiki.com/wiki/Improve_responsiveness_with_cgroups

[-- Attachment #2: Type: text/html, Size: 1154 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Is there a standard sysctl-like way to modify sysfs files at boot time?
  2010-12-27 11:37 [gentoo-user] Is there a standard sysctl-like way to modify sysfs files at boot time? Mark David Dumlao
  2010-12-28 11:28 ` Mick
@ 2010-12-29  1:54 ` Volker Armin Hemmann
  2010-12-30 15:05   ` Mark David Dumlao
  1 sibling, 1 reply; 6+ messages in thread
From: Volker Armin Hemmann @ 2010-12-29  1:54 UTC (permalink / raw
  To: gentoo-user

On Monday 27 December 2010 19:37:29 Mark David Dumlao wrote:
> I want to do this:
> http://blog.internetnews.com/skerner/2010/11/forget-200-lines-red-hat-speed.
> html
> 
> in userspace, but automate it at boot time. it requires that I create and
> mount the cgroup subsystem in sysfs and sounds a lot like something that I'd
> do in sysctl for /proc/sys, but for sysfs rather than procfs.
> 
> The only thing that comes to mind is to append to the local init script, but
> it's so close to what sysctl does that I feel like someone's probably
> written some tool for it. Is there one?

why?

why not just patch the kernel? or wait for 2.6.37? Why trying the easily 
broken userspace approach?

btw - patch or userspace - what happens with apps not started from a shell?



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Is there a standard sysctl-like way to modify sysfs files at boot time?
  2010-12-29  1:54 ` Volker Armin Hemmann
@ 2010-12-30 15:05   ` Mark David Dumlao
  2010-12-30 15:11     ` Mark David Dumlao
  0 siblings, 1 reply; 6+ messages in thread
From: Mark David Dumlao @ 2010-12-30 15:05 UTC (permalink / raw
  To: gentoo-user

On Wed, Dec 29, 2010 at 9:54 AM, Volker Armin Hemmann
<volkerarmin@googlemail.com> wrote:
>
> On Monday 27 December 2010 19:37:29 Mark David Dumlao wrote:
> > I want to do this:
> > http://blog.internetnews.com/skerner/2010/11/forget-200-lines-red-hat-speed.
> > html
> >
> > in userspace, but automate it at boot time. it requires that I create and
> > mount the cgroup subsystem in sysfs and sounds a lot like something that I'd
> > do in sysctl for /proc/sys, but for sysfs rather than procfs.
> >
> > The only thing that comes to mind is to append to the local init script, but
> > it's so close to what sysctl does that I feel like someone's probably
> > written some tool for it. Is there one?
>
> why?
>
> why not just patch the kernel? or wait for 2.6.37? Why trying the easily
> broken userspace approach?

I disagree. I think userspace is the best place to do this, not
kernelspace, especially as I'm considering customizing the cgroup
behavior further than that. I'm not sure why I'd call the userspace
approach broken. It's different, not broken.

>
> btw - patch or userspace - what happens with apps not started from a shell?
>
Well according to the wiki article posted uses shell, and it doesn't
affect non-shell behavior.

--
This email is:    [ ] actionable   [ ] fyi        [x] social
Response needed:  [ ] yes          [x] up to you  [ ] no
Time-sensitive:   [ ] immediate    [ ] soon       [x] none



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Is there a standard sysctl-like way to modify sysfs files at boot time?
  2010-12-30 15:05   ` Mark David Dumlao
@ 2010-12-30 15:11     ` Mark David Dumlao
  0 siblings, 0 replies; 6+ messages in thread
From: Mark David Dumlao @ 2010-12-30 15:11 UTC (permalink / raw
  To: gentoo-user

Neat thing, after I finished my kernel compile and did a reboot, the
/sys/fs/cgroup directory appears by default, so I don't need to mkdir
and can directly just place it in fstab.

With zen-sources, at least, but it sounds like what upstream behavior should do.
-- 
This email is:    [ ] actionable   [x] fyi        [x] social
Response needed:  [ ] yes          [ ] up to you  [x] no
Time-sensitive:   [ ] immediate    [ ] soon       [x] none



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-30 16:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-27 11:37 [gentoo-user] Is there a standard sysctl-like way to modify sysfs files at boot time? Mark David Dumlao
2010-12-28 11:28 ` Mick
2010-12-29  1:07   ` Adam Carter
2010-12-29  1:54 ` Volker Armin Hemmann
2010-12-30 15:05   ` Mark David Dumlao
2010-12-30 15:11     ` Mark David Dumlao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox