home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!watson!obelix.ncs.mainz.ibm.com!fuzzy
- From: fuzzy@obelix.ncs.mainz.ibm.com (Thomas Braunbeck/131000)
- Subject: Re: AIX malloc and fault tolerance
- Sender: @watson.ibm.com
- Message-ID: <1992Sep04.192428.34016@watson.ibm.com>
- Date: Fri, 04 Sep 92 19:24:28 GMT
- Reply-To: braunbec@Mainz.IBM.de
- References: <1992Sep3.135156.9166@medtron.medtronic.com> <1992Sep4.044125.861@portal.hq.videocart.com>
- Organization: IBM Germany, AIX Support Germany
- Lines: 60
-
- In article <1992Sep4.044125.861@portal.hq.videocart.com>, kdenning@portal.hq.videocart.com (Karl Denninger) writes:
- |> You don't, other than to allow it to die. Oh, you had something >important<
- |> in that program going on, like perhaps a financial transaction? Too bad --
- |> that SIGKILL you just received can't be caught! So much for reliable
- |> software.
- |>
- Only processe that do not have a signal handler for the SIGDANGER signal
- will get the SIGKILL.
- It it possible to suspend your process if the system sends the
- SIGDANGER until other processes release paging space.
- Use the psdanger subroutine to check the amount of free paging space.
-
-
-
- From General Concepts and Procedures, GC23-2202-02, page17-2:
- Fri Sep 4 21:09:06 MEZ 1992 Copyright (c) 1991 IBM Corporation Page 1
-
-
- Understanding Paging Space Allocation Policies
- The amount of paging space required depends on the type of activities
- performed on the system. If paging space runs low, processes may be
- lost, and if paging space runs out, the system may panic. When a paging
- space low condition is detected, additional paging space should be
- defined.
-
- The system monitors the number of free paging space blocks and detects
- when a paging space shortage condition exists. When the number of free
- paging space blocks falls below a threshold known as the paging space
- warning level, the system informs all processes (except kprocs) of this
- condition by sending the SIGDANGER signal. If the shortage continues
- and falls below a second threshold known as the paging space kill level,
- the system sends the SIGKILL signal to processes that are the major
- users of paging space and that do not have a signal handler for the
- SIGDANGER signal (the default action for the SIGDANGER signal is to
- ignore the signal). The system continues sending SIGKILL signals until
- the number of free paging space blocks is above the paging space kill
- level.
-
- Processes that dynamically allocate memory can ensure that sufficient
- paging space exists by monitoring the paging space levels with the
- psdanger subroutine or by using special allocation routines (see the
- psmalloc.c file for sample code which uses memory allocation routines
- that allocate paging space at memory allocation time). Processes can
- keep from getting ended when the paging space kill level is reached by
- defining a signal handler for the SIGDANGER signal and by releasing
- memory and paging space resources allocated in their data and stack
- areas and in shared memory segments, using the disclaim subroutine.
- --
-
- Best regards, Thomas Braunbeck
- AS Software Service AIX, Germany
-
- All the opinions expressed are my own and
- do not necessarily reflect those of IBM
-
- | Mail braunbec@mazvm02.vnet.ibm.com
- | braunbec@aixserv.mainz.ibm.de
- | DEIBM3M3 at IBMMAIL
- | fuzzy@obelix.ncs.mainz.ibm.com (IBM internal)
- | Voice +49-6131-84-2445, FAX +49-6131-84-6585
-