xenon-middleware / xenon-cli

Perform files and jobs operations with Xenon library from command line
http://nlesc.github.io/Xenon/
Apache License 2.0
2 stars 3 forks source link

Bug: max-memory assumes bytes instead of megabytes #79

Open fgvieira opened 3 years ago

fgvieira commented 3 years ago

When using (at least) the torque adapter it seems that the memory is assumed to be in bytes, even though the help says that --max-memory is in megabytes.

I submitted a job asking for --max-memory 1024, and it shows as:

                                                                                  Req'd       Req'd       Elap
Job ID                  Username    Queue    Jobname          SessID  NDS   TSK   Memory      Time    S   Time
----------------------- ----------- -------- ---------------- ------ ----- ------ --------- --------- - ---------
32678102                user        batch    job.reads_s      0      1     4      1024b     10:00:00  C       --

Is --max-memory supposed to be in bytes or megabytes? Either way, would it be possible to allow for suffixes? For example, to specify 1gb or 1024mb.