View previous topic :: View next topic |
Author |
Message |
HippoMan n00b
Joined: 05 Apr 2006 Posts: 11
|
Posted: Sat Apr 08, 2006 1:05 am Post subject: Finer-granularity scheduler? |
|
|
I'm looking for some software like uschedule which can do task scheduling at a finer granularity than once a minute. I can see that uschedule is not part of Gentoo Portage, and before I dive in and try to make myself a local Gentoo package for it, I'm wondering if anyone has already done this.
Alternatively, are there any other Gentoo-supported packages that will allow me to do task scheduling at a finer granularity than the cron family of utilities will allow?
Thanks in advance. |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Sat Apr 08, 2006 10:39 am Post subject: |
|
|
What for? Do you actually have a task you start only once a week / day / hour, where a couple of seconds make a difference? If you need to execute some task every second, you'd be better off not using something like cron, because the cron mechanism in general brings too much overhead if it's run that frequently. |
|
Back to top |
|
|
HippoMan n00b
Joined: 05 Apr 2006 Posts: 11
|
Posted: Sat Apr 08, 2006 4:25 pm Post subject: |
|
|
frostschutz wrote: | What for? Do you actually have a task you start only once a week / day / hour, where a couple of seconds make a difference? If you need to execute some task every second, you'd be better off not using something like cron, because the cron mechanism in general brings too much overhead if it's run that frequently. |
Well, I don't want to use anything in the cron family, which is why I'm enquiring about uschedule or something similar.
I have some tasks that need to be executed on a varying schedule, and sometimes the granularity is finer than once a minute. The uschedule program lets me easily run my tasks in this manner, and with a much lower overhead than cron. I'm just wondering if anyone has made a private Gentoo build of uschedule that they'd like to share, before I "re-invent the wheel" myself and make such a private build. As an alternative, I'm also wondering if perhaps a different utility with similar features might exist that already has been ported to Gentoo. |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Sat Apr 08, 2006 4:54 pm Post subject: |
|
|
As neither Google nor bugs.gentoo.org turn up anything, I think it's quite safe to say that there is no (semi-)official ebuild for uschedule yet. There is sys-process/at for queuing / scheduling commands, but I don't know if it comes close to uschedule in any way. |
|
Back to top |
|
|
HippoMan n00b
Joined: 05 Apr 2006 Posts: 11
|
Posted: Sat Apr 08, 2006 5:40 pm Post subject: |
|
|
frostschutz wrote: | As neither Google nor bugs.gentoo.org turn up anything, I think it's quite safe to say that there is no (semi-)official ebuild for uschedule yet. There is sys-process/at for queuing / scheduling commands, but I don't know if it comes close to uschedule in any way. |
Well, at is just a process scheduler controlled by cron, which means that the jobs cannot get invoked more frequently than once a minute. In addition, at doesn't allow repetitive execution of the tasks.
Given that at and the cron family are the only known utilities like this in Portage, and given that your and my Google searches didn't turn up anything about uschedule under Gentoo, my next step will now be to make a personal port of that utility.
Thank you very much. |
|
Back to top |
|
|
|