bugGNU Astronomy Utilities - Bugs: bug #65194, Option --quiet for astcosmiccal...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #65194: Option --quiet for astcosmiccal does not disable the warning

Submitter:  Boud Roukema <boud>
Submitted:  Tue 23 Jan 2024 04:09:20 PM UTC
   
 
Category:  CosmicCalculator Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Fri 02 Feb 2024 04:03:09 PM UTC, comment #1: 

Thanks a lot for reporting this situation Boud :-).

The problem was general to all programs, not just CosmicCalculator; it has been fixed in Commit 9edceeaa.

However, I should say that a normal user that installs Gnuastro will never confront this situation: '--minmapsize' will have a value when Gnuastro is installed; this happened because you were running from the build directory and hadn't ran 'make install'. But even for advanced users (who run from the build directory), the program should behave as it says in the warning message, so this was indeed an important bug to fix! Thanks again for reporting it :-).

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 23 Jan 2024 04:09:20 PM UTC, original submission:  

The command astcosmiccal claims that the --quiet option can be used to hide the memory map warning. However, it does not appear to work:


$ ./bin/cosmiccal/astcosmiccal --version
CosmicCalculator (GNU Astronomy Utilities) 0.21.75-4aca
Copyright (C) 2015-2024 Free Software Foundation, Inc.
License GPLv3+: GNU General public license version 3 or later.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written/developed by Mohammad Akhlaghi

$ $ ./bin/cosmiccal/astcosmiccal --quiet --properdistance --oradiation=0.0 --omatter=0.3 --olambda=0.7 --H0=70 --redshift=1


========= WARNING =========
Minimum size to map an allocated space outside of RAM is not set, or set to zero. This can greatly slow down the processing of a program or cause strange crashes (recall that the number of files that can be memory-mapped is limited).

On modern systems (with RAM larger than a giga-byte), it should be fine to set it to 10000000 (10 million bytes or 10Mb) with the command below. In this manner, only arrays that are larger than this will be memory-mapped and smaller arrays (which are much more numerous) will be allocated and freed in the RAM.

     --minmapsize=10000000

[This warning can be disabled with the '--quiet' (or '-q') option.]
===========================

3303.828806

$ ./bin/cosmiccal/astcosmiccal -q --properdistance --oradiation=0.0 --omatter=0.3 --olambda=0.7 --H0=70 --redshift=1


========= WARNING =========
Minimum size to map an allocated space outside of RAM is not set, or set to zero. This can greatly slow down the processing of a program or cause strange crashes (recall that the number of files that can be memory-mapped is limited).

On modern systems (with RAM larger than a giga-byte), it should be fine to set it to 10000000 (10 million bytes or 10Mb) with the command below. In this manner, only arrays that are larger than this will be memory-mapped and smaller arrays (which are much more numerous) will be allocated and freed in the RAM.

     --minmapsize=10000000

[This warning can be disabled with the '--quiet' (or '-q') option.]
===========================

3303.828806


Boud Roukema <boud>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Posted a comment)
  • -email is unavailable- added by boud (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-02-02 makhlaghi StatusNone Fixed
        Assigned toNone makhlaghi
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code