Re: Crash from ^T during heavy paging

2000-01-17 Thread Brian Fundakowski Feldman
On Mon, 17 Jan 2000, Bruce Evans wrote: > > Using the magic of :%s:p_stats->p_\([usi]\)\(u[^a-zA-Z_0-9]\):p_\1\2:g, > > and just using vi to edit the headers too :), I submit the following to > > you for review. I'll be testing it in its entirety tomorrow, but I'm > > already reasonably confiden

Re: Crash from ^T during heavy paging

2000-01-17 Thread Bruce Evans
> Using the magic of :%s:p_stats->p_\([usi]\)\(u[^a-zA-Z_0-9]\):p_\1\2:g, > and just using vi to edit the headers too :), I submit the following to > you for review. I'll be testing it in its entirety tomorrow, but I'm > already reasonably confident this is correct. What do you think? The subst

Re: Crash from ^T during heavy paging

2000-01-16 Thread Brian Fundakowski Feldman
On Wed, 12 Jan 2000, Bruce Evans wrote: > > Please do the work, but send it to me for review. > > I didn't have a fix for this particular problem until after seeing > your first mail about it. It didn't make sense for P_INMEM to be so > apparently broken without it causing problems until recen

Re: Crash from ^T during heavy paging

2000-01-11 Thread Bruce Evans
On Tue, 11 Jan 2000, Brian Fundakowski Feldman wrote: > On Tue, 11 Jan 2000, Bruce Evans wrote: > > ... > > Fix: move the new monotonicity fields from struct pstats to struct > > proc. I only put them in struct pstats because they logically go with > > some fields in struct rusage. > > ... > >

Re: Crash from ^T during heavy paging

2000-01-11 Thread Brian Fundakowski Feldman
On Tue, 11 Jan 2000, Bruce Evans wrote: > I broke calcru() with the monotonicity fixes (kern_resource.c rev.1.45 > (1999/03/13). Accessing p->p_stats at interrupt time is only valid if > p == curproc. > > Fix: move the new monotonicity fields from struct pstats to struct > proc. I only put the

Re: Crash from ^T during heavy paging

2000-01-11 Thread Bruce Evans
On Tue, 11 Jan 2000, Brian Fundakowski Feldman wrote: > On Mon, 10 Jan 2000, Stephen McKay wrote: > > > The problem is that calcru() thinks that P_INMEM means that the proc > > structure is fully and accurately populated. But P_INMEM is one of the > > first flags set. > > > > So, calcru() and p

Re: Crash from ^T during heavy paging

2000-01-11 Thread David Greenman
>On Mon, 10 Jan 2000, Stephen McKay wrote: > >> The problem is that calcru() thinks that P_INMEM means that the proc >> structure is fully and accurately populated. But P_INMEM is one of the >> first flags set. >> >> So, calcru() and possibly some other places, are looking at a struct proc >> bef

Re: Crash from ^T during heavy paging

2000-01-11 Thread Brian Fundakowski Feldman
On Mon, 10 Jan 2000, Stephen McKay wrote: > The problem is that calcru() thinks that P_INMEM means that the proc > structure is fully and accurately populated. But P_INMEM is one of the > first flags set. > > So, calcru() and possibly some other places, are looking at a struct proc > before it's

Crash from ^T during heavy paging

2000-01-09 Thread Stephen McKay
I'm currently giving 4.0 a thrashing in the best way I know. I run way too much stuff and let it page madly all day. Here's how I killed it: 1) pick a 32MB box 2) make -j20 buildworld 3) lean on ^T and let autorepeat go for it Soon it dies in calcru() called from ttyinfo(). The stack trace sh