🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.rt
Article #461

Re: Checking Paging Space

#461
From: Johann Schweigl
Date: Thu, 12 Oct 1989 23:02
16 lines
1178 bytes
From article <10585@csli.Stanford.EDU>, by tylman@csli.Stanford.EDU (Galia Tylman):
> Is there a way of checking how much swap space your RT has without going
> into minidisks?  Since you have to be root to run minidisks is there a
> way for a regular user to check how much paging space he has?

You can get the current number of free paging disk slots from the VM low mem.
One slot is 2K. Just try:

	volatile int	*freeSlots = (int *)0xb8;

	printf("currently %d page slots free\n",*freeSlots);
-- 
This does not reflect the   | Johann  Schweigl | DOS?
opinions of my employer.    | johnny@edvvie.at | Kind of complicated
I am busy enough by talking |                  | bootstrap loader ...
about my own ...            |   EDVG  Vienna   | 
Technical Details
Message-ID: <182@eliza.edvvie.at>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!ginosko!cs.utexas.edu!uunet!mcsun!tuvie!edvvie!eliza!johnny
References: <10585@csli.Stanford.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!ginosko!cs.utexas.edu!uunet!mcsun!tuvie!edvvie!eliza!johnny
From: johnny@edvvie.at (Johann Schweigl)
Newsgroups: comp.sys.ibm.pc.rt
Subject: Re: Checking Paging Space
Message-ID: <182@eliza.edvvie.at>
Date: 12 Oct 89 23:02:35 GMT
References: <10585@csli.Stanford.EDU>
Organization: Edv GesmbH, Austria/Europa
Lines: 16