Re: Interactive task scheduling (system) ? How do I run a list of tasks consecutively on a server ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 4 Feb 2022 at 11:56, Neal Becker <ndbecker2@xxxxxxxxx> wrote:
My purpose is to queue up a bunch of tasks > #cpus, and have #cpus run at a time in parallel.
So if I have 120 jobs to run, and 32 cores, I want to queue them all up and run 32 in parallel at a time.
Or, maybe I need to set --ncpus=16 so schedule 16 parallel  jobs instead of 32 (my scheduler is very simple and doesn't know about free memory)

Current GNU parallel has:

       --memfree size
           Minimum memory free when starting another job. The size can be postfixed with K, M, G, T, P, k, m, g, t, or p (see UNIT PREFIX).

           If the jobs take up very different amount of RAM, GNU parallel will only start as many as there is memory for. If less than size bytes are free, no
           more jobs will be started. If less than 50% size bytes are free, the youngest job will be killed, and put back on the queue to be run later.

           --retries must be set to determine how many times GNU parallel should retry a given job.

           See also: --memsuspend

       --memsuspend size
           Suspend jobs when there is less than 2 * size memory free. The size can be postfixed with K, M, G, T, P, k, m, g, t, or p (see UNIT PREFIX).

           If the available memory falls below 2 * size, GNU parallel will suspend some of the running jobs. If the available memory falls below size, only one
           job will be running.

           If a single job takes up at most size RAM, all jobs will complete without running out of memory. If you have swap available, you can usually lower
           size to around half the size of a single job - with the slight risk of swapping a little.

           Jobs will be resumed when more RAM is available - typically when the oldest job completes.

           --memsuspend only works on local jobs because there is no obvious way to suspend remote jobs.


--
George N. White III

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux