Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!apple!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!wastebasket From: wastebasket@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: (none) Message-ID: <8905050523.AA03717@Larry.McRCIM.McGill.EDU> Date: 5 May 89 05:23:37 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 39 > P.S. I asked SUN about how to find out from a user level application > running on SUNOS 4.X, how much physical memory is installed. # probepartsize /dev/mem where probepartsize.c can be obtained by running the following through atob|uncompress. This also comes in handy when you want to find out how much swap you have (use /dev/drum) or how big some partition really is (as opposed to how big the filesystem there is), or.... It does need read access to the device in question, which is why the shell prompt above is a # rather than a % or $. (Unfortunately this isn't much help when you want this information in a nonprivileged application, but then, anything expecting to read values out of /dev/kmem must be priviliged anyway.) xbtoa Begin +.\K'1NIf3F_9@fhs &LN%QPNJnQA_Vjiid_Ve"b^eGY*.*/2\5itc]0cr]S<3Sjn#b>hpX@`5NNgr.?9(((eVp(MK=+>h#; tb#L&9R7MKkn^t>7`q_THKY3.UWr,#gS..%5$#k2.=8HXMT^3lPWo&UoB4K%GOnSs3Uto?.pcH)\n3W)Y%9hP757.6$PU`e^s INnY%.^?8#hhQ-4H:r:s5MVZW-+WPZ:!d7Hu):G7_+(PZ`Xu,`A*H0VQ?&/26V5'Lbi<*uo<_A-NAb PX's2'T0[-H^!,PSpC9s_#d:crF]%9Gi]+%DkJiK+Gr#h(j<9a,9e.N$:W.61A<`,_qQ(#gFU.IZ!n_c_=aWUls, #g9e(h]),!sg3sOcUPkgsNu)G,-i^)*T0gV&`dUd"RFMQ%;FDFQ=hpCaP9!fGedoJKpIb`6\Yq:OF; h&PkC&6l+M4B4cpfEV,dNH@`jlRc>aR5*eVGIeK&=JKFeJ0SsLK*a/6*'Y_ *ssjKW+T-,Ybe3igl;/R[lH#klN3(/W`q7]fK;$qoRf+FO']Bk#Rs[Q3E,F/5K76?u/tP$)n^3esH[E[<02-p.g-!WW3# xbtoa End N 661 295 E c S 12732 R 40297628 > They couldn't imagine why anyone would ever want to know. Can't help any with that. :-) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu (Use these addresses; if you use the header address your message will be silently bit-bucketed.)