Sun 4 & MMU: further inquiry

Mark_Weiser.PARC at xerox.com Mark_Weiser.PARC at xerox.com
Thu Nov 1 11:08:19 AEST 1990


"For programs dynamically linked (involving shared libraries), are pmegs
allocated for all potential members of the shared library?"

No, that is not the point.  Rather, the shared libraries cause the actual
addresses being mapped to be spread out all over, and every 256k of
address space with a page in use in it uses up a pmeg entry.  The actual
physcial pages in use are no larger, but the spread of addresses is.

"The point is made that shared text and data between processes still
involves non-shared pmegs (i.e., pmegs mapping the same pages aren't
shared).  Is this also true for multiple processes attaching to System V
shared memory segments?"

Yes.  PMEG entries are not shared across processes at all, even if they
are doing mmaps or shmops to specify sharing.  Furthermore, Sun's PMEG fix
patch does not repair this, but only makes swapping pmeg entries in and
out faster.

"It is implied that more than 16 megabytes of physical memory is typically
going to be used as a disk cache."

Implied by who where?  Anyway, it might be true.  The PMEG problem is not
a physical memory problem, but rather an addressing problem.  You can be
running completely in RAM and have 95% of your time going to the kernel
thrashing pmeg entries.  I've seen it.

-mark



More information about the Comp.sys.sun mailing list