Re: namei caching of newly created files?
Havard Eidnes <[email protected]> Thu, 20 Jan 2005 01:46:48 +0100 (CET)
| Newsgroups | gmane.os.netbsd.devel.performance,gmane.os.netbsd.devel.kernel |
|---|---|
| Message-ID | <[email protected]> |
> it seems that <sys/namei.h> already has cache_enter(). I wonder > if this patch looks sane and safe: That was the first one. With that one it worked faster, but on reboot it did: Jan 20 01:43:49 ultra shutdown: reboot by he: Jan 20 01:44:01 ultra syslogd: Exiting on signal 15 syncing disks... done unmounting file systems...uvm_fault(0xcca452a8, 0x682000, 0, 2) -> 0xe kernel: page fault trap, code=0 Stopped in pid 15309.1 (reboot) at netbsd:cache_remove+0x37: movl %eax,0x4(%edx) db> trace cache_remove(cdba5054,cc9dd990,cdb47e0c,0,1) at netbsd:cache_remove+0x37 cache_purgevfs(c1d44000,cdb47e44,1,1,1) at netbsd:cache_purgevfs+0x3e dounmount(c1d44000,80000,cc9dd990,0,cdb47e78) at netbsd:dounmount+0x85 vfs_unmountall(cc9dd990,0,0,3800c8f9,0) at netbsd:vfs_unmountall+0xb1 vfs_shutdown(0,cc8cfbe0,cdb47f3c,c0380a2a,0) at netbsd:vfs_shutdown+0xa6 cpu_reboot(0,0,cdb47ecc,c0373bd9,9) at netbsd:cpu_reboot+0x103 sys_reboot(cc8cfbe0,cdb47f64,cdb47f5c,0,cb649d10) at netbsd:sys_reboot+0x46 syscall_plain() at netbsd:syscall_plain+0x7e --- syscall (number 208) --- 0xbdb3e17b: db> Hm. - HÃ¥vard