Re: dentry_cache using up all my zone normal memory -- also seen on 2.6.14-rc2

Randy.Dunlap
2005-09-22T22:04:07Z

On Thu, 22 Sep 2005, Christopher Friesen wrote:

> Sonny Rao wrote:
>
> > I think your loglevel is too low, set it to seven (using sysrq if
> > necessary) and try again.
>
> I thought the following __handle_sysrq() code would take care of that:
>
> spin_lock_irqsave(&sysrq_key_table_lock, flags);
> orig_log_level = console_loglevel;
> console_loglevel = 7;
> printk(KERN_INFO "SysRq : ");

Some code below there is suspicious. Maybe you could modify
some of it...

(cut-and-paste, may have whitespace damage:)

if (!check_mask || sysrq_enabled == 1 ||
(sysrq_enabled & op_p->enable_mask)) {
printk ("%s\n", op_p->action_msg);
console_loglevel = orig_log_level;
op_p->handler(key, pt_regs, tty);
}

swap those last 2 lines and see what happens...

--
~Randy