home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sun.admin:9548 comp.sys.sun.apps:2797 comp.sys.sun.misc:5896 comp.unix.questions:14766 comp.unix.wizards:5259
- Path: sparky!uunet!metrix!venkat
- From: venkat@metrix.UUCP (Venkat Rangan)
- Newsgroups: comp.sys.sun.admin,comp.sys.sun.apps,comp.sys.sun.misc,comp.unix.questions,comp.unix.wizards
- Subject: specifying the number of blocks for streams module.
- Keywords: mblks, dblks, streams
- Message-ID: <905@metrix.UUCP>
- Date: 17 Dec 92 16:22:41 GMT
- Organization: Metrix Network Systems, Nashua, NH
- Lines: 38
-
- We have a an application that uses the STREAMS NIT buffering module, nit_buf.
- We only use the read-side of the device. Occasionally, we get
-
- xdbmalloc: out of mblks
-
- or
-
- xdbmalloc: out of dblks
-
- on the console and the system hangs.
-
- If we observe the streams allocation through netstat -m,
-
- streams allocation:
- cumulative allocation
- current maximum total failures
- streams 11 13 57 0
- queues 40 43 211 0
- mblks 676 1372 1836310 0
- dblks 676 1372 1415457 0
-
- The current amd maximum for mblks and dblks increase to about 100,000
- at which point the system hangs.
-
- I am seeing this behavior in versions Sun OS 4.0.3 to 4.1.3
-
- Is there a way to specify the maximum number of mblks and dblks allocated for
- a stream head? This will atleast prevent us from allocating so many
- mblks or dblks that we hang the system.
-
- Any info will be greatly appreciated.
-
- ---------------------------------------------------------------------------
- Venkat Rangan
- Metrix Network Systems Inc. One Tara Blvd, Nashua, NH 03062
- venkat@metrix.com VOICE: (603) 888-7000 FAX: (603) 891-2796
- ---------------------------------------------------------------------------
-
-