[comp.unix.xenix] 'ps -el' meaning of flag codes 100 & 200?

toppin@melpar.UUCP (Doug Toppin) (10/28/89)

I am running SCO Xenix on the 286 and have seen flag codes of 0100 and 0200
when I do a 'ps -el'. /usr/include/sys/proc.h indicates that 0100 means
'text pointer valid' and 0200 means 'process has been scanned since
last swapin'. The manual page stops at 040. My questions are:
    * What do these mean?
    * Is it possible to swap out the data space and leave the text resident?
    * Does a 0 entry mean the text and data segments are swapped out?
    * I believe that if, when a new process is invoked, the kernel can't
      find enough memory to do the fork it forces the parent to swap.
      When the exec is attempted if there is still not enough memory is that
      when the 'not enough core' message appears?
    * How can the current state of the swap space be determined?

thanks
Doug Toppin
uunet!melpar!toppin

davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) (10/31/89)

In article <241@melpar.UUCP>, toppin@melpar.UUCP (Doug Toppin) writes:
|      * Is it possible to swap out the data space and leave the text resident?

  Sure. This can be seen some what more often on a system which has
multiple copies of the same program running. An inactive process will be
a candidate for swap, but the active copies will keep the (shared) text
segment in.
-- 
bill davidsen	(davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon