Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Q: Do you know what the death rate around here is? A: One per person.


comp / comp.os.linux.misc / Re: setting load limit for atd batch system?

SubjectAuthor
* setting load limit for atd batch system?Woozy Song
+- Re: setting load limit for atd batch system?Rich
`* Re: setting load limit for atd batch system?Woozy Song
 `- Re: setting load limit for atd batch system?Andreas Eder

1
Subject: setting load limit for atd batch system?
From: Woozy Song
Newsgroups: comp.os.linux.misc, alt.os.linux
Organization: A noiseless patient Spider
Date: Fri, 24 May 2024 02:34 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: suzyw0ng@outlook.com (Woozy Song)
Newsgroups: comp.os.linux.misc,alt.os.linux
Subject: setting load limit for atd batch system?
Date: Fri, 24 May 2024 10:34:48 +0800
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <v2oucb$252d9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 May 2024 04:34:52 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f35fb539c6d5a87552b23e5b58dd8801";
logging-data="2263465"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/J6p0tSqzA7Cgt8MnVpEBQnUfLXqYjFWI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.2
Cancel-Lock: sha1:7fKu5yHXDGo4IBl756l32s0oXJk=
X-Mozilla-News-Host: news://news.eternal-september.org:119
View all headers

So the atd supposedly will not start another job until load factor falls
below a limit. Different documentation gives the default as 0.8 or 1.5
Now I launch a job that uses 4 cores on a 6-core CPU. If I run top
command, I see four processes running close to 100%.
Now if I submit another job 10 seconds later, that starts thereby
overloading the CPU. Documentation suggests setting load limit to more
than n-1 for n CPU cores, but I think that is intended for single-thread
jobs. I have tried altering the load limit in atd.service file to all
sorts of values, but second job keeps starting while the first is
flogging the CPU. I check with 'ps -ef|grep atd' to see it is using the
desired load limit. I am aware that the load factor is an average, you
can see it changes slowly in top/htop/glances. So I also increase the
delay between jobs to 30 seconds, but still nothing works. So it looks
like I have to specify a time like 'now+60 minutes' when I submit,
requiring some guess how long first job runs. I know I can install a
proper job scheduler such as Some Grid Engine, but that is more work.
This is on Debian 11, by the way.

Subject: Re: setting load limit for atd batch system?
From: Woozy Song
Newsgroups: comp.os.linux.misc, alt.os.linux
Organization: A noiseless patient Spider
Date: Fri, 24 May 2024 04:24 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: suzyw0ng@outlook.com (Woozy Song)
Newsgroups: comp.os.linux.misc,alt.os.linux
Subject: Re: setting load limit for atd batch system?
Date: Fri, 24 May 2024 12:24:05 +0800
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <v2p4p5$25ver$1@dont-email.me>
References: <v2oucb$252d9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 May 2024 06:24:06 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f35fb539c6d5a87552b23e5b58dd8801";
logging-data="2293211"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19f+hbrFulpW32KaMZ0GptgqVJv9WQlFAk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.2
Cancel-Lock: sha1:yHlP6uoaVT9hrvg2LiRvQbQ1YOk=
In-Reply-To: <v2oucb$252d9$1@dont-email.me>
View all headers

Woozy Song wrote:
> So the atd supposedly will not start another job until load factor falls
> below a limit. Different documentation gives the default as 0.8 or 1.5
> Now I launch a job that uses 4 cores on a 6-core CPU. If I run top
> command, I see four processes running close to 100%.
> Now if I submit another job 10 seconds later, that starts thereby
> overloading the CPU. Documentation suggests setting load limit to more
> than n-1 for n CPU cores, but I think that is intended for single-thread
> jobs. I have tried altering the load limit in atd.service file to all
> sorts of values, but second job keeps starting while the first is
> flogging the CPU. I check with 'ps -ef|grep atd' to see it is using the
> desired load limit. I am aware that the load factor is an average, you
> can see it changes slowly in top/htop/glances. So I also increase the
> delay between jobs to 30 seconds, but still nothing works. So it looks
> like I have to specify a time like 'now+60 minutes' when I submit,
> requiring some guess how long first job runs. I know I can install a
> proper job scheduler such as Some Grid Engine, but that is more work.
> This is on Debian 11, by the way.

I found the trick: you have to add '-q B' to command, then load-limit
rule applies (it behaves like batch command instead of at). Otherwise it
uses default queue 'a' that only uses time without load limit.

Subject: Re: setting load limit for atd batch system?
From: Andreas Eder
Newsgroups: comp.os.linux.misc, alt.os.linux
Followup: poster
Organization: A noiseless patient Spider
Date: Fri, 24 May 2024 15:25 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: a_eder_muc@web.de (Andreas Eder)
Newsgroups: comp.os.linux.misc,alt.os.linux
Subject: Re: setting load limit for atd batch system?
Followup-To: poster
Date: Fri, 24 May 2024 17:25:28 +0200
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <87msofz0yf.fsf@eder.anydns.info>
References: <v2oucb$252d9$1@dont-email.me> <v2p4p5$25ver$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 24 May 2024 17:27:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ae5248262fd1e27e07a2f74b28fcbab7";
logging-data="2516340"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19w6dz4bjgIkh6I7vvbG/+c"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:ieJHIJDvW+9n5IIinMXJh7m0FQ0=
sha1:oK9YS9Et71m6KrNiniWPpxv5JEI=
View all headers

On Fr 24 Mai 2024 at 12:24, Woozy Song <suzyw0ng@outlook.com> wrote:

> Woozy Song wrote:
>> So the atd supposedly will not start another job until load factor falls
>> below a limit. Different documentation gives the default as 0.8 or 1.5
>> Now I launch a job that uses 4 cores on a 6-core CPU. If I run top
>> command, I see four processes running close to 100%.
>> Now if I submit another job 10 seconds later, that starts thereby
>> overloading the CPU. Documentation suggests setting load limit to more
>> than n-1 for n CPU cores, but I think that is intended for single-thread
>> jobs. I have tried altering the load limit in atd.service file to all
>> sorts of values, but second job keeps starting while the first is flogging
>> the CPU. I check with 'ps -ef|grep atd' to see it is using the desired
>> load limit. I am aware that the load factor is an average, you can see it
>> changes slowly in top/htop/glances. So I also increase the delay between
>> jobs to 30 seconds, but still nothing works. So it looks like I have to
>> specify a time like 'now+60 minutes' when I submit, requiring some guess
>> how long first job runs. I know I can install a proper job scheduler such
>> as Some Grid Engine, but that is more work.
>> This is on Debian 11, by the way.
>
> I found the trick: you have to add '-q B' to command, then load-limit rule
> applies (it behaves like batch command instead of at). Otherwise it uses
> default queue 'a' that only uses time without load limit.

I think ot is '-q b', the small letter b for the batch queue (a is for at).
The other letters are not used by default and just serve to indicate niceness.

'Andreas

--
ceterum censeo redmondinem esse delendam

Subject: Re: setting load limit for atd batch system?
From: Rich
Newsgroups: comp.os.linux.misc, alt.os.linux
Organization: A noiseless patient Spider
Date: Fri, 24 May 2024 16:18 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc,alt.os.linux
Subject: Re: setting load limit for atd batch system?
Date: Fri, 24 May 2024 16:18:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <v2qekd$2d6e3$2@dont-email.me>
References: <v2oucb$252d9$1@dont-email.me>
Injection-Date: Fri, 24 May 2024 18:18:21 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7b35b684b61ee9f935b72f253a46eaa3";
logging-data="2529731"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tjABGKQmRkAorqpuLPyBn"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:gG715+Qn3C2c6D9q5UhiU8NMEBQ=
View all headers

In comp.os.linux.misc Woozy Song <suzyw0ng@outlook.com> wrote:
> So the atd supposedly will not start another job until load factor falls
> below a limit. Different documentation gives the default as 0.8 or 1.5
> Now I launch a job that uses 4 cores on a 6-core CPU. If I run top
> command, I see four processes running close to 100%.
> Now if I submit another job 10 seconds later, that starts thereby
> overloading the CPU. Documentation suggests setting load limit to more
> than n-1 for n CPU cores, but I think that is intended for single-thread
> jobs. I have tried altering the load limit in atd.service file to all
> sorts of values, but second job keeps starting while the first is
> flogging the CPU. I check with 'ps -ef|grep atd' to see it is using the
> desired load limit. I am aware that the load factor is an average, you
> can see it changes slowly in top/htop/glances. So I also increase the
> delay between jobs to 30 seconds, but still nothing works. So it looks
> like I have to specify a time like 'now+60 minutes' when I submit,
> requiring some guess how long first job runs. I know I can install a
> proper job scheduler such as Some Grid Engine, but that is more work.
> This is on Debian 11, by the way.

An alternative to using at and batch (batch is what observes the load
limit by-the-way) is to install Task Spooler and use it for 'background
jobs'. You can tell it to run jobs sequentially, or max X in parallel
(you get to pick X).

https://viric.name/soft/ts/

You can also submit jobs that "depend upon" other jobs, so that the
dependent job won't run until the "parent" completes successfully.

1

rocksolid light 0.9.8
clearnet tor