Date: Mon, 17 Jul 1995 01:06:32 -0700 (PDT) From: "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com> To: mpp@legarto.minn.net (Mike Pritchard) Cc: hsu@cs.hut.fi, davidg@Root.COM, freebsd-current@freefall.cdrom.com Subject: Re: current breaks 2.0.5 binary Message-ID: <199507170806.BAA00738@gndrsh.aac.dev.com> In-Reply-To: <199507170758.CAA03221@mpp> from "Mike Pritchard" at Jul 17, 95 02:58:39 am
next in thread | previous in thread | raw e-mail | index | archive | help
>
> Rodney W. Grimes wrote:
> > > >kvm_open: proc size mismatch (35520 total, 620 chunks)
> > > >top: Out of memory.
> > >
> > > " NOTE: libkvm, w, ps, 'top', and any other utility which depends on struct
> > > proc or any VM system structure will have to be rebuilt!!! "
> > >
> > > In addition, I had to remove /var/db/kvm_kernel.db and rebuild it. Just
> > > rebuilding produced a core dump from kvm_mkdb.
> >
> > This is the bug that should be fixed, kvm_mkdb must be blowing up in
> > the attempt to validate the current db file, it should not do that :-(.
> >
> > > Could it be sensible to add
> > >
> > > rm -f /var/db/kvm_kernel.db
> > >
> > > before kvm_mkdb in /etc/rc?
> >
> > This is a bandaid to hide the real bug, I do not want a bandaid, I want
> > a real fix :-).
> >
> > Now the crux, I can't get kvm_mkdb to core for me :-(.
>
> Just for the record, I've never seen kvm_mkdb core dump, either.
> But for other reasons, I would like to see the kernel database
> files cleaned up. I have the following in my /etc/weekly file to
> remove old kernel database files:
>
> find /var/db -name "kvm_*.db" -a -atime +7 -exec rm -f -- {} \;
> kvm_mkdb
You can get the name of the running kernel with sysctl ``kern.bootfile''
and use that information to make the find
find /var/db -name "kvm_*.db" -a ! -name "${kernel}"...
this totally eliminates any race condition... with that done I would
say it was fine to add to /etc/weekly.
--
Rod Grimes rgrimes@gndrsh.aac.dev.com
Accurate Automation Company Reliable computers for FreeBSD
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507170806.BAA00738>
