home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / aix / 13671 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  2.6 KB

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: Mickey_Coggins@vnet.ibm.com
  3. Message-ID: <19930123.071307.356@almaden.ibm.com>
  4. Date: Sat, 23 Jan 93 15:43:25 CET
  5. Cc:   steves@ssecmail.ssec.wisc.edu
  6. Newsgroups: comp.unix.aix
  7. Subject: Re: Problem with AIX3.2 paging subsystem?
  8. Reply-To: Mickey_Coggins@vnet.ibm.com
  9. Organization: IBM
  10. Disclaimer: This posting represents the poster's views, not those of IBM
  11. News-Software: UReply 3.1
  12. References: <1993Jan21.230535.4139@cs.wisc.edu>
  13. Lines: 52
  14.  
  15. In <1993Jan21.230535.4139@cs.wisc.edu> Steve Shirshac writes:
  16. >I think I may have found a problem in the AIX 3.2 paging subsystem.  If
  17. >you have any experience with developing device drivers for AIX, I would
  18. >appreciate any insights you might have into this problem or how to
  19. >isolate it further.  A rather detailed description follows.
  20. > ....
  21. >           privileged user process ("fred") allocates a large shared mem
  22. >           segment (16Mb), "fred" pins shared mem seg, "fred" opens our
  23. >           device and passes a pointer to the shared mem seg to my device
  24. >           driver.
  25. > ....
  26. >           upon privileged user process completion:
  27. >
  28. >              "svmon" indicates that the pages used to back the shared mem
  29. >                      segment have been unpinned.
  30.  
  31. svmon shows the segment to be unpinned, but is it still there?
  32. Run a nasty script like the following to see what svmon thinks
  33. the paging space usage is:
  34. svmon -Sa 10000 | cut -c45-53 | awk '/0-9Y/{print $1"+f"}' | dc | tail -1
  35.  
  36. Compare this with pstat -s, vmstat 2 2, lsps -a, (they will all return
  37. slightly different values, by the way).
  38.  
  39. If you are getting wildly different values, this could be a bug in AIX.
  40. Take a system dump, using the sysdumpstart command, and send it into
  41. the AIX defect support people.  You'll have to create some kind of
  42. "simple" test case.
  43.  
  44. I'd keep checking your driver for possible problems.
  45.  
  46. Another thing to try is to map a 16MB file (create and touch all pages
  47. before you use it) to shared memory using the shmat() system call,
  48. (see info for the appropriate flags).  You might want to create,
  49. bzero, unlink, map, run, exit and see if the file space is still
  50. taken up.  Could provide a clue.
  51.  
  52. >              "ipcs" indicates that the shared memory segments which were
  53. >                     being used are no longer there.
  54.  
  55. >Steve Shirshac (steves@ssecmail.ssec.wisc.edu)
  56. >
  57.  
  58. Viel spass,
  59. --
  60. Mickey Coggins  Mickey_Coggins@vnet.ibm.com
  61.                 +41-1-436-7274 / +41-1-436-8525 (fax)
  62.                 Hohlstrasse 560, CH-8048 Zurich, Switzerland
  63. _______________
  64. "All who have meditated on the art of governing mankind
  65.  have been convinced that the fate of empires depends on
  66.  the education of youth."   - Aristotle
  67.