Shrinking a mumps.dat file

  • robtweed

    robtweed - 2008-04-23

    Is there any way to reduce the size of a mumps.dat file once it's expanded?  I think I must have created some very large globals that I've now cleared down.  This is a problem as I want to keep the size of the Virtual Machine it's running in to the smallest size possible so it can be downloaded easily.

    I've used mupip REORG but the mumps.dat stayed the same enormous size (462,230,016 bytes) even though it's now just got a few small globals in it.

    • Vladimir Ilnitsky

      I think there is one way only:
      Do ^%GO - upload all globals.
      Recreate mumps.dat with a new smaller size.
      Do ^%GI - download all globals.

      • K.S. Bhaskar

        K.S. Bhaskar - 2008-04-23

        Once created, a database file cannot be shrunk - you must extract the globals and load them into a newly created database file.  However, mupip extract followed by mupip load would be a faster way to do this than ^%GO followed by ^%GI.

        -- Bhaskar

    • S. Rigaud

      S. Rigaud - 2008-05-28

      > Once created, a database file cannot be shrunk
      Then how about implementing this feature ?!? Kind of:
      mupip resize /path/to/mumps.dat -size ... ?
      That would be nice...


      • K.S. Bhaskar

        K.S. Bhaskar - 2008-05-28

        No argument - it would be a nice feature to have.  In the FOSS business, we tend to be closely focused on enhancements that have sponsorship, but we will keep this in mind in case we are working in the area or in case we have some spare cycles.

        -- Bhaskar


Log in to post a comment.