Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2003 22:50:24 +0100
From:      Pawel Jakub Dawidek <P.Dawidek@prioris.mini.pw.edu.pl>
To:        freebsd-hackers@freebsd.org
Subject:   Caching [sugestion].
Message-ID:  <20030105215024.GB99855@prioris.mini.pw.edu.pl>

next in thread | raw e-mail | index | archive | help
Hello hackers...

I just wondering...
Now we got problems with caching, and problems could be seriuos in -CURRENT
when we want to use some TrustedBSD features, etc.
Sometimes there is NEED to get filename (or full path) from vnode to log
selected behaviour or many other useful things (for example property
working __getcwd()).
For now we could get pathname from cache, but not always it is possible.

My sugestion is to add some flags that will describe priority of cached
objects. Objects with some flag should be removed from cache only when
it's really necessary. This flag should be set for:
	- working directory of every process (p->p_fd->fd_cdir),
	- filename of executable (p->p_textvp),
	- filenames of all opened files )p->p_fd->fd_ofiles[X]->f_data).
	- maybe something else?

On every [f]chdir(), our flag should be removed from actual object and
set on new one. Exactly that same for execve() and exit1() and for
open() and p->p_fd->fd_ofiles[X]->f_ops->fo_close().

This don't have to be done via VFS caching mechanism, this could also
be made by some separated mechanism used only for this.

Think over this, please!

-- 
Pawel Jakub Dawidek
UNIX Systems Administrator
http://garage.freebsd.pl
Am I Evil? Yes, I Am.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030105215024.GB99855>