- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: malloc error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 07:21 AM
06-08-2005 07:21 AM
K260, 512mb ram, HPUX 10.20
I just attempted to restore a file set when I got the malloc error:
Starting file recovery...
frecover(5435): malloc error while attempting to read index
frecover(4301): /tmp/datafilename not recovered from backup media
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).
So my question is, How can I restore my file if I can increase maxdsiz? Can I recover without the index file?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 07:29 AM
06-08-2005 07:29 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 07:35 AM
06-08-2005 07:35 AM
Re: malloc error
(2) Install 11.11 (or better: 11.23) (your OS is obsolete)
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 07:35 AM
06-08-2005 07:35 AM
Re: malloc error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 07:40 AM
06-08-2005 07:40 AM
Re: malloc error
Do a ulimit -Hd and a ulimit -Sd.
In any event, you only need enough shared memory to hold the index.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 07:59 AM
06-08-2005 07:59 AM
Re: malloc error
ulimit -Hd
2015464
and the same for -Sd
swapinfo
Kb Kb Kb PCT
TYPE AVAIL USED FREE USED
dev 524288 13216 511072 3%
reserve - 151540 -151540
memory 389120 256508 132612 66%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 08:10 AM
06-08-2005 08:10 AM
Re: malloc error
_____________Kb______Kb______Kb___PCT_
TYPE______AVAIL____USED____FREE__USED_
dev_______524288___13216__511072____3%_
reserve_________-__151540__-151540
memory___389120__256508___132612___66%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 08:15 AM
06-08-2005 08:15 AM
Re: malloc error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 09:11 AM
06-08-2005 09:11 AM
Re: malloc error
maxssiz is 83570688 (0x04FB3000)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 07:43 AM
06-09-2005 07:43 AM
Re: malloc error
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?
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 01:06 PM
06-09-2005 01:06 PM
Re: malloc error
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.
Alternatively you can run trace frecover with tusc.
# tusc -o tusc.log -fv -s brk frecover ...
You will see see number of brk() calls as frecover tries to increase the heap.
brk(0x400021e8) .......................................... = 0
brk(0x400041d0) .......................................... = 0
brk(0x40005000) .......................................... = 0
brk(0x40007000) .......................................... = 0
brk(0x40008000) .......................................... = 0
brk(0x4001e000) .......................................... = 0
brk(0x40022000) .......................................... = 0
In this example traced program successfully allocated 0x22000 bytes (139264 in decimal).
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2005 02:20 PM
06-09-2005 02:20 PM
Re: malloc error
At the very least, these values will make any errors more understandable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 04:19 AM
06-10-2005 04:19 AM
Re: malloc error
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.
Could I use dd to dump the tape contents to another drive? What format is fbackup? Or is its own format?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 04:29 AM
06-10-2005 04:29 AM
Re: malloc error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 06:07 AM
06-10-2005 06:07 AM
Re: malloc error
hopefully you are a non-profit!
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 05:02 PM
06-10-2005 05:02 PM
Re: malloc error
PS Forgot this was 10.20 system, you wouldn't be able to run tusc anyway!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2005 02:10 PM
06-11-2005 02:10 PM
Re: malloc error
I'm thinking vmstat should be around.. on 10.20
also, you can use 'adb' to print the 'freemem' in a loop, to just look at free memory in the kernel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 02:15 AM
06-17-2005 02:15 AM
Re: malloc error
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.
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.
Any other ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 02:39 AM
06-17-2005 02:39 AM
Re: malloc error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 08:13 AM
06-17-2005 08:13 AM
Re: malloc error
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:
# 1 /path/filename
The backup that is failing is 74mb and 930,000 lines in the index file. This index is a bit different:
832 1 /path/filename
Each line has what looks like a filesize followed by about 20 spaces.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 08:20 AM
06-17-2005 08:20 AM
Re: malloc error
832................1 /path/filename
but spaces instead of "."
After my backup is complete, i extract the index header file and parse that into a database for user reference. Then if a file is ever needed i can easily recover the file. The process had been working fine without any problems until just recently. Most of the time (but not this time) I will restore the last few file just as added insurance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 01:56 PM
06-17-2005 01:56 PM
Re: malloc error
As for the index file size, there are some notes that it was limited to 100M, but you are not quite near that limit.
Just out of curiousity, what's the index file size as shown in the volume header.
# frecover -V - -f /dev/rmt/0m
Also can you verify files on the tape with -N option or it fails with malloc error?
# frecover -r -N -f /dev/rmt/0m
Does number of lines returned by the last command match with number of lines in the index file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2005 05:10 PM
06-17-2005 05:10 PM
Re: malloc error
Typically, this type of problem could be due to too small msxdsiz or
maxssiz, or it could be a swap issue. "/stand/system" indicated
that maxdsiz and maxssiz were default values. Upon checking swap:
# swapinfo -tm
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 400 103 297 26% 0 - 1 /dev/vg00/lvol2
reserve - 297 -297
memory 197 178 19 90%
total 597 578 19 97% - 0 -
The choices were to add swap space (permanent or temporary) or
shutdown databases and/or applications to free up swap space.
Regards
Vinod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2005 04:33 AM
06-23-2005 04:33 AM
Re: malloc error
Thank you again for all the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2005 04:42 AM
06-23-2005 04:42 AM