IBM Spectrum Computing Group

Expand all | Collapse all

rusage errors

  • 1.  rusage errors

    Posted Tue March 10, 2020 08:49 AM

    What's the magic in getting the usage strings to work, we always get the message below:

    bsub -n 8 -R "rusage[mem=20000]" hostname

    Resource requirement string is invalid. Job not submitted.

    We are using the free community edition - some uncertainty about if this could be the problem. This is not mentioned as a characteristic of the community edition.



    ------------------------------
    Ben Held
    ------------------------------


  • 2.  RE: rusage errors

    Posted Tue March 10, 2020 09:59 AM
    Well, that's odd.  What is the output of lsid?

    ------------------------------
    Larry Adams
    ------------------------------



  • 3.  RE: rusage errors

    Posted Tue March 10, 2020 10:48 AM

    I just tried it on mine with no issues.

    (base) gilbert@gilbert-aa:~$ bsub -n 1 -R "rusage[mem=20000]" hostname
    Job <1557> is submitted to default queue <normal>.
    (base) gilbert@gilbert-aa:~$ lsid
    IBM Spectrum LSF Community Edition 10.1.0.6, May 25 2018
    Copyright IBM Corp. 1992, 2016. All rights reserved.
    US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

    My cluster name is cluster1
    My master name is gilbert-aa
    (base) gilbert@gilbert-aa:~$ bjobs -p
    JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME
    1557 gilbert PEND normal gilbert-aa hostname Mar 10 22:43
    Job's requirements for resource reservation not satisfied (Resource: mem);




    ------------------------------
    GILBERT THOMAS
    ------------------------------



  • 4.  RE: rusage errors

    Posted Tue March 10, 2020 11:00 AM
    Is this a copy-pasted command? If yes, then check if there are hidden
    invalid characters in it (echo 'YOUR PASTED COMMAND' | od -c). We
    regularly have the problem, that commands copied from email contain
    weird characters or invalid quotes (aka "intelligent quotes" :-).

    frank




  • 5.  RE: rusage errors

    Posted Tue March 10, 2020 10:37 AM

    [centos@centos7-remote etc]$ lsid
    IBM Spectrum LSF Community Edition 10.1.0.0, Jun 15 2016
    Copyright IBM Corp. 1992, 2016. All rights reserved.
    US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

    My cluster name is clusterlsf
    My master name is centos7-remote

    ------------------------------
    Ben Held
    ------------------------------



  • 6.  RE: rusage errors

    Posted Tue March 10, 2020 10:44 AM
    Ben,

    You better grab and install over your existing install the latest version of CE.  The one you are using is very old.  I think the version out there now is LSF 10.1.0.6, and we are planning on having the 10.1.0.9 released in the next month or so.  Of course, there is no support.  If you want that, there are a lot of options.  It's great for building basic integrations of tools with LSF though.

    Larry

    ------------------------------
    Larry Adams
    ------------------------------



  • 7.  RE: rusage errors

    Posted Tue March 10, 2020 10:56 AM
    We will upgrade - and report back.  Thanks - I wasn't sure how active this forum was.

    ------------------------------
    Ben Held
    ------------------------------



  • 8.  RE: rusage errors

    Posted Tue March 10, 2020 11:07 AM
    It is copy/pasted but looks okay:
    [centos@centos7-remote etc]$ echo 'bsub -n 8 -R "rusage[mem=1]" hostname' | od -c
    0000000 b s u b - n 8 - R " r u
    0000020 s a g e [ m e m = 1 ] " h o s
    0000040 t n a m e \n
    0000046

    ------------------------------
    Ben Held
    ------------------------------



  • 9.  RE: rusage errors

    Posted Tue March 10, 2020 11:09 AM
    I'm sorry, all of this is so refreshing ;)

    ------------------------------
    Larry Adams
    ------------------------------