Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



Jason Thorpe wrote:

> Uh, a proplib dictionary in struct proc is probably about 30 minutes  
> worth of work (including compiling the kernel -- I would let you test  
> it during the implementation of your feature since I don't have a  
> direct use for the capability myself, at the moment).  Time well  
> spent, I think.

For simple flags type usage, what would be the overhead to check a
flag's value if it were in a proplib dictionary instead of just being
a bit in a int in struct proc?

To pick one example from kern/kern_sig.c where we loop over all
processes:

                PROCLIST_FOREACH(p, &allproc) {
                        if (p->p_pid <= 1 || p->p_flag & P_SYSTEM || p == cp ||
                           ....

What would that look like in a proplib flags world, and what extra
overheads would be involved in checking the value?

Simon.



Home | Main Index | Thread Index | Old Index