Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

There is not enough memory available now.

Status
Not open for further replies.

kozlow

MIS
Mar 3, 2003
326
US
When running a "cp" command from disk to disk or running a "tar" command from disk to disk or tape, I receive the following error on certain files (not all).

There is not enough memory available now.

Running as root.
root # ulimit -m
unlimited
root # ulimit
unlimited
 
Please post the output of 'svmon -G' (you'll need root privileges to run it).

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

Wish you could view posts with a fixed font? Got Firefox & Greasemonkey? Give yourself the option.
 
paix1 root # svmon -G

size inuse free pin virtual
memory 1441781 510038 931743 79927 228423
pg space 786432 1013

work pers clnt
pin 79927 0 0
in use 330773 179265 0
 
Seems that your paging space is too small...


HTH,

p5wizard
 
Looks like you've got plenty of memory. You're not even using half of your physical memory.

Are you sure your cp isn't aliased to something else? The only place I've seen this message is when there's a block size mismatch between a command and the media it's dealing with.

What does the "ls -l" look like for the files that cause this error?

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

Wish you could view posts with a fixed font? Got Firefox & Greasemonkey? Give yourself the option.
 
I have 3Gig of Paging Space and only 5.5Gig of memory? I always thought that anything over a GIG of memory you used half the size of paging space....

paix1 root # lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
paging00 hdisk2 raidvg01 1024MB 1 yes yes lv
paging01 hdisk1 rootvg 1024MB 1 yes yes lv
hd6 hdisk0 rootvg 1024MB 1 yes yes lv

Not much paging space is being used.....
 
Ain't paging space then, tar can only handle 2GB files and you have 3GB free paging space (as well as almost 4GB of free memory).

64bt or 32 bit kernel?

Is the source or destination an NFS mount and is the system AIX 5.2?
I think there is an apar for 5.1 too - IY42428.

tar will use /tmp before the copy takes place, is /tmp big enough?
 
This is an old 4.3.3 server. No chance of upgrading to 5 at this time. Application is not certified on it (legacy system).

I tested just one of the failing files and it still fails. There was a good amount of free space in /tmp at that time.

We ran an FSCK -p to see if there was some sort of corruption in the filesystem.

Running out of ideas...

Thanks for the help and I will take and try any suggestions...
 
kozlow,

Can you post the exact command that's failing, plus an "ls -l" of a file that's failing?

Is it the same files every time?

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

Wish you could view posts with a fixed font? Got Firefox & Greasemonkey? Give yourself the option.
 
Out of 60,000 files, it looks like up to 40,000 are failing.

I did a sub-directory when running the tar command...

Here is one example...

# ls -l /pdmteam/ptcsl/stlassy_0.asm
-rw-r--r-- 1 pdmadm meta 106496 Nov 16 2005 /pdmteam/ptcsl/stlassy_0.asm

The "There is not enough memory available now" is the exact message. No other info is given... Just the file name being copied in front of it.

It looks like the system is reporting an memory error when it truely is something else. What that is is a mystery to IBM...... And me.....
 
And what's the command that failed, as it appears on the command line or in your script?

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

Wish you could view posts with a fixed font? Got Firefox & Greasemonkey? Give yourself the option.
 
What does the command

aclget /pdmteam/ptcsl/stlassy_0.asm

show?


HTH,

p5wizard
 
paix1 root # aclget /pdmteam/ptcsl/stlassy_0.asm
attributes:
base permissions
owner(pdmadm): rw-
group(meta): r--
others: r--
extended permissions
disabled
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top