[K42-discussion] Odd issues with my K42 build (duplicate dir entries, and minimal /proc)

Dilma DaSilva dilma at watson.ibm.com
Fri Feb 3 10:54:23 EST 2006


Hi Patrick,

There is nothing wrong with your build. These anomalies are
present in all of our trees :-)

About the duplicate dir entries, the reason is that we gather entries
for / from the file system corresponding to / (also reachable through
/nfs) and from the mount point manager, that maintains a list of
things mounted from /. We do not consolidate the list to eliminate
repetitions, because in k42 a mount point does not necessarily hide
everything below it. The namespace is a colection of trees, and we
have ways to specify that some will cover nodes and others won't.
This is inspired by Plan9's namespaces.
So for example you see "sys" twice because the root file system
has a directory entry "sys" and because we have a file system that
we mount as /sys.

ps has not been implemented. /proc has been populated on demand.
In general, some basic services like geting the lists of running
processes is a bit more involved than in a traditional unix design
because k42 doesn't maintain global data structures.

You may find useful to look at a "P dump" (run P from the console);
it'll  print information about all running threads in the system.

dilma

Patrick Bozeman writes:
 > I'm seeing duplicate dir entries in /, ps doesn't work, and /proc isn't
 > very populated.  Is this standard, or is something screwed up with my build?
 > 
 > mambo root # ls -i /
 > 6406944 ChangeLog  6589325 home   6406767 lib          7 root   6422675 u
 > 6406945 README     6589325 home   6406297 lib64        7 root   6422676 usr
 > 6406298 bin        6406765 homes  6422529 mnt    6422538 sbin   6422676 usr
 > 6406445 boot       6605126 kbin   6406296 nfs          2 sys    7195619 var
 >       1 dev        6605155 klib   6422532 opt          2 sys    7195619 var
 >       1 dev        6406153 knfs         1 proc   6622948 tests
 > 6589283 etc              1 ksys         1 proc   6589339 tmp
 > 6589283 etc        6406767 lib          0 ram    6589339 tmp
 > 
 > mambo root # ps
 > 2.4+ kernel w/o ELF notes? -- report this
 > Error: /proc must be mounted
 >   To mount /proc at boot you need an /etc/fstab line like:
 >       /proc   /proc   proc    defaults
 >   In the meantime, mount /proc /proc -t proc
 > 
 > mambo root # ls /proc
 > cpuinfo  meminfo  mounts  stat  sys  version
 > 
 > 
 > _______________________________________________
 > K42-discussion mailing list
 > K42-discussion at ozlabs.org
 > https://ozlabs.org/mailman/listinfo/k42-discussion



More information about the K42-discussion mailing list