Sponsored Content
Operating Systems AIX Fork Function Failed on 4GB ? Post 302774387 by MichaelFelt on Friday 1st of March 2013 05:40:00 PM
Old 03-01-2013
no, vm or avm is only addressable virtual memory. To really see paging space used you must use svmon. There is a column Pgsp

Further, ps counts everything as if it is unique - but many segments, especially shared memory code and data, as well as kernel.

In sample below see, amng others, that segments b000b and 20002 are everywhere. ps counts, i.e. reports them everytime as if they were only in their process.

Code:
michael@x054:[/home/michael]svmon -P -t 3 | grep -v clnt

-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual 64-bit Mthrd  16MB
 4391154 java             48179     8478        0    39022      N     Y     N

    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
  830583         3 work working storage              s  19320     0    0   19320
   b000b         d work shared library text          s  10304     0    0   10304
   20002         0 work kernel segment               s   8816  8400    0    8816
  8004e0         - work                              s    279    75    0     279
  870547         f work working storage              s    270     0    0     270
  840564         2 work process private              s     33     3    0      33
  880568         c mmap maps 1 source(s)             s      0     0    -       -
  8e056e         b mmap maps 18 source(s)            s      0     0    -       -

-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual 64-bit Mthrd  16MB
 5963962 java             38511     8436        0    31575      N     Y     N

    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
   b000b         d work shared library text          s  10304     0    0   10304
  8906a9         3 work working storage              s  10083     0    0   10083
   20002         0 work kernel segment               s   8816  8400    0    8816
  9807b8         e work shared memory segment        s   1977     0    0    1977
  860686         f work working storage              s    252     0    0     252
  8c068c         - work                              s    112    33    0     112
  8606a6         2 work process private              s     31     3    0      31
  900750         b mmap maps 3 source(s)             s      0     0    -       -
  940774         c mmap maps 1 source(s)             s      0     0    -       -

-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual 64-bit Mthrd  16MB
 4456598 cimserver        25141     8434        0    25127      N     Y     N

    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
   b000b         d work shared library text          s  10304     0    0   10304
   20002         0 work kernel segment               s   8816  8400    0    8816
  960356         3 work working storage              s   2896     0    0    2896
  930333         2 work process private              s   2748     3    0    2748
  860366         f work shared library data          s    209     0    0     209
  850385         - work                              s    154    31    0     154
  9a035a         5 work working storage              s      0     0    0       0
  840364         a work working storage              s      0     0    0       0
  980358         4 work working storage              s      0     0    0       0
  820362         9 work working storage              s      0     0    0       0
  9e035e         7 work working storage              s      0     0    0       0
  800360         8 work working storage              s      0     0    0       0
  9c035c         6 work working storage              s      0     0    0       0
michael@x054:[/home/michael]

 

10 More Discussions You Might Find Interesting

1. Programming

how to use function fork() in Windows NT

Hello, I need to make a gateway from Ethernet to RS-485. I am using stream socket, and I am programming in windows nt. I would like to know how could I use some functions from unix in windows nt. I would like to use the function fork(). Which library it uses and how can I get it? Can I... (1 Reply)
Discussion started by: danieljorge
1 Replies

2. Shell Programming and Scripting

Endless loop - Fork function failed?

I need a quick script that will serve as a sort of "real time monitor" for watching some log files. I am using Bourne shell in HP-UX 10.20. I have basically created a script that never ends, unless of course I manually terminate it. Here's the script (it's called qhistory): clear echo "REAL... (3 Replies)
Discussion started by: cdunavent
3 Replies

3. UNIX for Dummies Questions & Answers

fork function

hi everyone, have this little piece of code in order to help you understand my question #include<stdio.h> #include<unistd.h> int main() { int i, pid; pid = fork(); if(pid<0) { fprintf(stderr, "fork failed\n"); _exit(1); } if(pid==0) { printf("in Child\n");... (4 Replies)
Discussion started by: a25khan
4 Replies

4. AIX

fiber with 4GB

Hi, It's my first time I will use a 4BG fiber with two ports on one card. I used only one port 2GB before. What will be the drivers I need to install on my AIX5.3? Is the two ports going to be just one line? Or I can use the other ports on another connection. Thanks in advance, itik (1 Reply)
Discussion started by: itik
1 Replies

5. Shell Programming and Scripting

spliting 4gb files to 4*1 gb each

I have log file whose size is 4 GB , i would like to split it to 1 gb each ,Can any one tell me the syntax of csplit comand for that. I am using Sun0S 5.8 (3 Replies)
Discussion started by: jambesh
3 Replies

6. IP Networking

4GB Dual Port HBA

I have one 4GB, dual port HBA. Is each port rated for 4GB, or is it the whole HBA rated for 4GB? Also, how do I determine which is port0 / port1 with "lscfg -vl fcs0" command. Thanks. (0 Replies)
Discussion started by: jwholey
0 Replies

7. SCO

-sh: fork failed - too many processes in sco unix 5.0.5

Dear experts, I have done a re-installation of sco unix openserver 5.0.5 and managed to create users. The problem am facing is that of one user logging in more than 5 times. How can i overcome this problem. the system give the error below. -sh: fork failed - too many processes in sco unix... (5 Replies)
Discussion started by: njoroge
5 Replies

8. IP Networking

The system function gethostbyname() failed to find the client's host name

As we are facing issue with this server connection. The error is: The system function gethostbyname() failed to find the client's host name. how can i check if the server "server1" is able to resolve the client hostname (hosts / dns)? i can ping the client from server. any... (1 Reply)
Discussion started by: jinslick25
1 Replies

9. Programming

Fork thread, Assertion failed. X11.

Hi all. I wrote a program with the Motif Widget Toolkit. It has a button and a scrollbar. When the user hits the button the callback creates a new fork() thread. The new thread sleeps for a while and then changes the position of the scrollbar. It does this in an endless loop. I need the... (2 Replies)
Discussion started by: mghis
2 Replies

10. UNIX for Beginners Questions & Answers

32 bit process addressing more than 4GB

Hello for all, I am testing the behavior of a 32 bit application running on Solaris 5.10 (SPARC), and realize it reaches 4GB of memory and then crashes. It doesn't matter the amount of used memory as application is intended to perform many transactions; rather, what I want to achieve is to... (2 Replies)
Discussion started by: Leito7824
2 Replies
All times are GMT -4. The time now is 07:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy