On Fri, 27 Apr 2001, Mike Noyes wrote:
> Jack Coates, 2001-04-27 08:25 -0700
> >On Fri, 27 Apr 2001, Mike Noyes wrote:
> >
> > > Jack Coates, 2001-04-27 07:12 -0700
> > > ><snip>
> > > > > >running, as "echo test > file" won't work if the disk is
> > > > > >full. So...be cautious turning Nessus loose on your own
> > > > > >LRP box. :)
> > > > >
> > > > > I think this is a problem. I believe the ramdisk shouldn't fill up
> > > > > under any circumstances. Can we change log rotate to trigger on
> > > > > file size in addition to periodically?
> > > >
> > > >It's got the ability in multicron, but commented out by default. I
> > > >haven't formally tested it, but it seemed to worked on my old
> > > >low-memory router. Still, a check every few minutes to start action
> > > >seems like a kludgy way to handle it.
> > >
> > > Jack,
> > > Is there an elegant solution to the problem?
> > >
> >Uhhh.... quotas?
>
> Jack,
> How large are the quota utilities?
Wouldn't be a good solution unless we chrooted and service accounted
everything -- which is something I'm planning to do with Ladybug when
development restarts. On that note, got CVS going here and have started
to check it out (pun intended).
>
> >Uhhh.... at least using a cat /proc/whatever instead of df?
>
> Would that be proc/stats?
no, I think that's aggregate activity, or else it doesn't do ram disk:
willard: -root-
# df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/ram0 6076 4557 1519 75% /
# grep disk /proc/stat
disk 0 0 0 0
disk_rio 0 0 0 0
disk_wio 0 0 0 0
disk_rblk 0 0 0 0
disk_wblk 0 0 0 0
>
> >Here's the code from /etc/multicron-p:
> <snip>
> >the annoying thing is that I don't see where it's getting called from --
> >it's not in crontab, but I do know it's getting called because the ping
> >check goes off about hourly.
>
> A Nessus scan can add enough log entries in less than five minutes to
> exceed free ramdisk space. This is on a box with 16M of memory.
>
> If I remember correctly, David solved this problem in Oxygen by creating a
> separate partition for /var/log. He recommends 18M for Oxygen though, and I
> don't know if this fixes the performance slowdown.
>
> --
> Mike Noyes <[EMAIL PROTECTED]>
> http://leaf.sourceforge.net/
>
>
> _______________________________________________
> Leaf-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/leaf-devel
>
_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel