Re: [RFC] log out-of-virtual-memory events

2007-05-19 Thread Folkert van Heusden
> >> I'm looking for a way to keep track of the processes that fail to > >> allocate new > >> virtual memory. What do you think about the following approach > >> (untested)? > > Looks like an easy way for users to spam syslogd over and > > over and over again. > > At the very least, shouldn't this

Re: [RFC] log out-of-virtual-memory events

2007-05-18 Thread Bernd Eckenfels
In article <[EMAIL PROTECTED]> you wrote: > + printk(KERN_INFO > + "out of virtual memory for process %d (%s): total_vm=%lu, > uid=%d\n", > + current->pid, current->comm, total_vm, current->uid); And align this one with the print_fatal layout: printk(KERN_

Re: [RFC] log out-of-virtual-memory events

2007-05-18 Thread Bernd Eckenfels
In article <[EMAIL PROTECTED]> you wrote: >printk("%s/%d: potentially unexpected fatal signal %d.\n", >current->comm, current->pid, signr); can we have both KERN_WARNING please? Gruss Bernd - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

Re: [RFC] log out-of-virtual-memory events

2007-05-18 Thread Andrea Righi
Andrea Righi wrote: > Robin Holt wrote: >> On Fri, May 18, 2007 at 09:50:03AM +0200, Andrea Righi wrote: >>> Rik van Riel wrote: Andrea Righi wrote: > I'm looking for a way to keep track of the processes that fail to > allocate new > virtual memory. What do you think about the foll

Re: [RFC] log out-of-virtual-memory events

2007-05-18 Thread Andrea Righi
Robin Holt wrote: > On Fri, May 18, 2007 at 09:50:03AM +0200, Andrea Righi wrote: >> Rik van Riel wrote: >>> Andrea Righi wrote: I'm looking for a way to keep track of the processes that fail to allocate new virtual memory. What do you think about the following approach (unteste

Re: [RFC] log out-of-virtual-memory events

2007-05-18 Thread Robin Holt
On Fri, May 18, 2007 at 09:50:03AM +0200, Andrea Righi wrote: > Rik van Riel wrote: > > Andrea Righi wrote: > >> I'm looking for a way to keep track of the processes that fail to > >> allocate new > >> virtual memory. What do you think about the following approach > >> (untested)? > > > > Looks lik

Re: [RFC] log out-of-virtual-memory events

2007-05-18 Thread Andrea Righi
Rik van Riel wrote: > Andrea Righi wrote: >> I'm looking for a way to keep track of the processes that fail to >> allocate new >> virtual memory. What do you think about the following approach >> (untested)? > > Looks like an easy way for users to spam syslogd over and > over and over again. > > At

Re: [RFC] log out-of-virtual-memory events

2007-05-17 Thread Rik van Riel
Andrea Righi wrote: I'm looking for a way to keep track of the processes that fail to allocate new virtual memory. What do you think about the following approach (untested)? Looks like an easy way for users to spam syslogd over and over and over again. At the very least, shouldn't this be depe