Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Finer-granularity scheduler?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
HippoMan
n00b
n00b


Joined: 05 Apr 2006
Posts: 11

PostPosted: Sat Apr 08, 2006 1:05 am    Post subject: Finer-granularity scheduler? Reply with quote

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
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Sat Apr 08, 2006 10:39 am    Post subject: Reply with quote

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
View user's profile Send private message
HippoMan
n00b
n00b


Joined: 05 Apr 2006
Posts: 11

PostPosted: Sat Apr 08, 2006 4:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Sat Apr 08, 2006 4:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
HippoMan
n00b
n00b


Joined: 05 Apr 2006
Posts: 11

PostPosted: Sat Apr 08, 2006 5:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum