[comp.sys.ibm.pc.rt] Checking Paging Space

tylman@csli.Stanford.EDU (Galia Tylman) (10/08/89)

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?

I know this can be done on SUNs, HPs and other machines but I have not
been able to find an equivalent command on my RT.

Galia
-- 
Galia Tylman		Internet:  tylman@csli.stanford.edu

johnny@edvvie.at (Johann Schweigl) (10/13/89)

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   |