<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic malloc error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906353#M405152</link>
    <description>Some assistance please,&lt;BR /&gt;&lt;BR /&gt;K260, 512mb ram, HPUX 10.20&lt;BR /&gt;&lt;BR /&gt;I just attempted to restore a file set when I got the malloc error:&lt;BR /&gt;&lt;BR /&gt;Starting file recovery...&lt;BR /&gt;frecover(5435): malloc error while attempting to read index&lt;BR /&gt;frecover(4301): /tmp/datafilename not recovered from backup media&lt;BR /&gt;&lt;BR /&gt;I know enough to check the maxdsiz parm but that is where the problem really starts.  maxdsiz is current 2063835136 (0x7B03A000) and if I attempt to increase I get the error that I have exceeded the maximum size for maxdsiz.  I can recover the index file and it is rather large too, 74449920 (there are thousands of files).&lt;BR /&gt;&lt;BR /&gt;So my question is, How can I restore my file if I can increase maxdsiz?  Can I recover without the index file?&lt;BR /&gt;</description>
    <pubDate>Wed, 08 Jun 2005 14:21:11 GMT</pubDate>
    <dc:creator>David Gwin_1</dc:creator>
    <dc:date>2005-06-08T14:21:11Z</dc:date>
    <item>
      <title>malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906353#M405152</link>
      <description>Some assistance please,&lt;BR /&gt;&lt;BR /&gt;K260, 512mb ram, HPUX 10.20&lt;BR /&gt;&lt;BR /&gt;I just attempted to restore a file set when I got the malloc error:&lt;BR /&gt;&lt;BR /&gt;Starting file recovery...&lt;BR /&gt;frecover(5435): malloc error while attempting to read index&lt;BR /&gt;frecover(4301): /tmp/datafilename not recovered from backup media&lt;BR /&gt;&lt;BR /&gt;I know enough to check the maxdsiz parm but that is where the problem really starts.  maxdsiz is current 2063835136 (0x7B03A000) and if I attempt to increase I get the error that I have exceeded the maximum size for maxdsiz.  I can recover the index file and it is rather large too, 74449920 (there are thousands of files).&lt;BR /&gt;&lt;BR /&gt;So my question is, How can I restore my file if I can increase maxdsiz?  Can I recover without the index file?&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jun 2005 14:21:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906353#M405152</guid>
      <dc:creator>David Gwin_1</dc:creator>
      <dc:date>2005-06-08T14:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906354#M405153</link>
      <description>Well, I don't think it has anything to do with maxdsize because your machine is at 1/2 gig, your maxdsize is 2G and you're trying to allocate 75meg.  I just think you've used up all your free ram.  I think you could make a larger swap area and let all of that memory allocation run from there.  It would be slow, but you might be able to recover your file.</description>
      <pubDate>Wed, 08 Jun 2005 14:29:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906354#M405153</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-06-08T14:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906355#M405154</link>
      <description>(1) get new hardware (your hardware is obsolete)&lt;BR /&gt;(2) Install 11.11 (or better: 11.23) (your OS is obsolete)&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Wed, 08 Jun 2005 14:35:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906355#M405154</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-08T14:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906356#M405155</link>
      <description>what is your output from: ulimit ?&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jun 2005 14:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906356#M405155</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2005-06-08T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906357#M405156</link>
      <description>Maxdsiz is already more than adequate and there is really no point in it being more than 1GB (and even that is ludicrous given your amount of physical memory). You are problem running out of virtual address space because you don't have enough swapspace. Malloc can also fail if ulimit has been applied.&lt;BR /&gt;&lt;BR /&gt;Do a ulimit -Hd and a ulimit -Sd.&lt;BR /&gt;&lt;BR /&gt;In any event, you only need enough shared memory to hold the index.</description>
      <pubDate>Wed, 08 Jun 2005 14:40:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906357#M405156</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-08T14:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906358#M405157</link>
      <description>I would love to get new hardware/software however that is not an option.&lt;BR /&gt;&lt;BR /&gt;ulimit -Hd&lt;BR /&gt;2015464&lt;BR /&gt;&lt;BR /&gt;and the same for -Sd&lt;BR /&gt;&lt;BR /&gt;swapinfo&lt;BR /&gt;             Kb      Kb      Kb   PCT &lt;BR /&gt;TYPE      AVAIL    USED    FREE  USED &lt;BR /&gt;dev      524288   13216  511072    3% &lt;BR /&gt;reserve       -  151540 -151540&lt;BR /&gt;memory   389120  256508  132612   66%&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jun 2005 14:59:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906358#M405157</guid>
      <dc:creator>David Gwin_1</dc:creator>
      <dc:date>2005-06-08T14:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906359#M405158</link>
      <description>swapinfo table didn't display too well,&lt;BR /&gt;&lt;BR /&gt;_____________Kb______Kb______Kb___PCT_&lt;BR /&gt;TYPE______AVAIL____USED____FREE__USED_&lt;BR /&gt;dev_______524288___13216__511072____3%_&lt;BR /&gt;reserve_________-__151540__-151540&lt;BR /&gt;memory___389120__256508___132612___66%</description>
      <pubDate>Wed, 08 Jun 2005 15:10:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906359#M405158</guid>
      <dc:creator>David Gwin_1</dc:creator>
      <dc:date>2005-06-08T15:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906360#M405159</link>
      <description>This is 32-bit HP-UX so both the stack and the data segment are allocated from the same 1GB quadrant. This means, for example, if you had set maxssiz to 800MB then at most only 200MB would actually be available for the data segment regardless of maxdsiz. (and actually about 40MB less than that). Check you setting of maxssiz. Anything bigger than 32MB is only needed for very badky written code.</description>
      <pubDate>Wed, 08 Jun 2005 15:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906360#M405159</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-08T15:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906361#M405160</link>
      <description>Thank you for the information.&lt;BR /&gt;&lt;BR /&gt;maxssiz is 83570688 (0x04FB3000)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jun 2005 16:11:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906361#M405160</guid>
      <dc:creator>David Gwin_1</dc:creator>
      <dc:date>2005-06-08T16:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906362#M405161</link>
      <description>I have made a few adjustments but I'm still not having any luck finding that magic answer.&lt;BR /&gt;&lt;BR /&gt;Other than upgrading the HW or OS, are there any other suggestions as to how I might go about restoring this data tape.  Any other parms that could be adjusted up or down?&lt;BR /&gt;&lt;BR /&gt;I can see that I need to change my backup process but that's not going to help with the files that are already on backup tapes.</description>
      <pubDate>Thu, 09 Jun 2005 14:43:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906362#M405161</guid>
      <dc:creator>David Gwin_1</dc:creator>
      <dc:date>2005-06-09T14:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906363#M405162</link>
      <description>Maybe you can try adding another swap device if have spare disk space.&lt;BR /&gt;&lt;BR /&gt;If you have 'glance' installed on your system you can watch RSS/VSS (resident and virtual memory size) in process detail window (press s and select frecover PID) to see how much memory frecover is trying to allocate.&lt;BR /&gt;&lt;BR /&gt;Alternatively you can run trace frecover with tusc.&lt;BR /&gt;&lt;BR /&gt;# tusc -o tusc.log -fv -s brk frecover ...&lt;BR /&gt;&lt;BR /&gt;You will see see number of brk() calls as frecover tries to increase the heap.&lt;BR /&gt;&lt;BR /&gt;brk(0x400021e8) .......................................... = 0&lt;BR /&gt;brk(0x400041d0) .......................................... = 0&lt;BR /&gt;brk(0x40005000) .......................................... = 0&lt;BR /&gt;brk(0x40007000) .......................................... = 0&lt;BR /&gt;brk(0x40008000) .......................................... = 0&lt;BR /&gt;brk(0x4001e000) .......................................... = 0&lt;BR /&gt;brk(0x40022000) .......................................... = 0&lt;BR /&gt;&lt;BR /&gt;In this example traced program successfully  allocated 0x22000 bytes (139264 in decimal).&lt;BR /&gt;&lt;BR /&gt;In your case you will see failed brk() call at the end when frecover fails. From there you can find out how much memory it's trying to allocate.</description>
      <pubDate>Thu, 09 Jun 2005 20:06:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906363#M405162</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-06-09T20:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906364#M405163</link>
      <description>At this point, I'm going to ask that you humor me and reduce maxdsiz to about 512MB, maxssiz to about 64MB (or 32MB) and maxtsiz to about 128MB. Since you already have 1X memory as swapspace, swapmem_on=1 is doing nothing for you so you might as well disable pseudoswap. When you reboot under the new kernel make sure that no other non-essential tasks are running. Given your machine's configuration, your present values are a little ridiculous so returning them to more or less sane levels couldn't hurt. I would also limit buffer cache to about 60MB by setting bufpages to 15360 and make sure nbuf is left at zero. This will turn off dynamic buffer cache.&lt;BR /&gt;&lt;BR /&gt;At the very least, these values will make any errors more understandable.</description>
      <pubDate>Thu, 09 Jun 2005 21:20:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906364#M405163</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-09T21:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906365#M405164</link>
      <description>I don't have glance or tusc installed on this system.  I have the very basic system with the last and final hw/sw patches installed for 10.20.&lt;BR /&gt;&lt;BR /&gt;Because this is a heavily used system, I am not able to shut it down during the day.  I'll give the reduced maxdsiz, maxssiz and maxtsiz a try this weekend.&lt;BR /&gt;&lt;BR /&gt;Could I use dd to dump the tape contents to another drive?  What format is fbackup?  Or is its own format?</description>
      <pubDate>Fri, 10 Jun 2005 11:19:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906365#M405164</guid>
      <dc:creator>David Gwin_1</dc:creator>
      <dc:date>2005-06-10T11:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906366#M405165</link>
      <description>Dd is useless to recover this tape because it uses tape marks and variable blocking. You could use frecover on another HP-UX box but I think as soon as you can reduce the load on this box, you should be able to run frecover.</description>
      <pubDate>Fri, 10 Jun 2005 11:29:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906366#M405165</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-10T11:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906367#M405166</link>
      <description>Auditers would kill us if we still had 10.20 running!&lt;BR /&gt;&lt;BR /&gt;hopefully you are a non-profit!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Fri, 10 Jun 2005 13:07:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906367#M405166</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-06-10T13:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906368#M405167</link>
      <description>Even if you don't have glance you can still run 'top' and watch SIZE and RES for frecover before it fails. I think it's important to find out amount of memory it's trying to allocate before making any changes. It also wouldn't hurt to capture 'Memory' line from 'top' and 'swapinfo -tam' before frecover failure.&lt;BR /&gt;&lt;BR /&gt;PS Forgot this was 10.20 system, you wouldn't be able to run tusc anyway!</description>
      <pubDate>Sat, 11 Jun 2005 00:02:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906368#M405167</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-06-11T00:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906369#M405168</link>
      <description>vmstat -n 5 100&lt;BR /&gt;&lt;BR /&gt;I'm thinking vmstat should be around.. on 10.20&lt;BR /&gt;&lt;BR /&gt;also, you can use 'adb' to print the 'freemem' in a loop, to just look at free memory in the kernel.</description>
      <pubDate>Sat, 11 Jun 2005 21:10:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906369#M405168</guid>
      <dc:creator>D Block 2</dc:creator>
      <dc:date>2005-06-11T21:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906370#M405169</link>
      <description>Just to give a bit more information,&lt;BR /&gt;&lt;BR /&gt;This past weekend, made a number of attempts to restore the data tape.  Changed parms (maxdsiz, maxssiz, maxtsiz, and others), watched the memory (the best that I could), reboots, single user mode, and anything else that i could think of and still no success.&lt;BR /&gt;&lt;BR /&gt;I found someone here locally who has a D-box HP system w/ 11.x 2gb of memory.  STILL no luck at restoring the tape.&lt;BR /&gt;&lt;BR /&gt;Any other ideas?</description>
      <pubDate>Fri, 17 Jun 2005 09:15:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906370#M405169</guid>
      <dc:creator>David Gwin_1</dc:creator>
      <dc:date>2005-06-17T09:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906371#M405170</link>
      <description>This really sounds as though you have a corrupt fbackup image on the tape. It sounds as though reading back your backup tapes was not a regular practice.</description>
      <pubDate>Fri, 17 Jun 2005 09:39:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906371#M405170</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-17T09:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: malloc error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906372#M405171</link>
      <description>Does any one know if there is a limit to the size (space allowed) for the index header file on a tape.  IE the first 64mb is reserved for the index header???  &lt;BR /&gt;I just check the last know good backup is 46mb and there are 760,000 lines in the index file.  The file is looks normal:&lt;BR /&gt;# 1 /path/filename&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The backup that is failing is 74mb and 930,000 lines in the index file.  This index is a bit different:&lt;BR /&gt;832              1 /path/filename&lt;BR /&gt;&lt;BR /&gt;Each line has what looks like a filesize followed by about 20 spaces.</description>
      <pubDate>Fri, 17 Jun 2005 15:13:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/malloc-error/m-p/4906372#M405171</guid>
      <dc:creator>David Gwin_1</dc:creator>
      <dc:date>2005-06-17T15:13:19Z</dc:date>
    </item>
  </channel>
</rss>

