home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / aix / 9406 < prev    next >
Encoding:
Text File  |  1992-09-07  |  3.4 KB  |  73 lines

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