"sar -f <file>" fails with "sar: malloc failed"

"sar -f <file>" fails with "sar: malloc failed"

Post by Doug Utzi » Wed, 05 Aug 1998 04:00:00



I'm trying to run sar by specifying a specific data file:

% ls -l xac
-rw-rw-rw-   1 staff   staff      4218553 Aug  4 10:56 xac

% sar -f xac

SunOS stsun1 5.5.1 Generic_103640-08 sun4u    01/14/70

16:24:50    %usr    %sys    %wio   %idle
21:01:36        unix restarts
sar: malloc failed
Resource temporarily unavailable

Looking at a truss output of this, sar is trying to allocate 765Mb.

15961:  brk(0x0002A220)                                 = 0
15961:  brk(0x2FD28220)      Err#11 EAGAIN

Any ideas why sar is doing this?

 
 
 

"sar -f <file>" fails with "sar: malloc failed"

Post by Ed Finc » Wed, 05 Aug 1998 04:00:00



> I'm trying to run sar by specifying a specific data file:

> % ls -l xac
> -rw-rw-rw-   1 staff   staff      4218553 Aug  4 10:56 xac

> % sar -f xac

> SunOS stsun1 5.5.1 Generic_103640-08 sun4u    01/14/70

> 16:24:50    %usr    %sys    %wio   %idle
> 21:01:36        unix restarts
> sar: malloc failed
> Resource temporarily unavailable

"xac" looks like a strange file to me. sar files are usually named
sa[0-9], and
the daily summary is sar[0-9]. I don't know what the summary files can
be
used for, but if you try to read one via "sar -f sar[0-9]" you will get
the same
error you did.

HTH,
Ed

     Q: Why do PCs have a reset button on the front?
     A: Because they are expected to run Microsoft operating systems.