Re: Please test: workaround to help swapoff behaviour

2001-06-10 Thread Bulent Abali
>The fix is to kill the dead/orphaned swap pages before we get to >swapoff. At shutdown time there is practically nothing active in > ... >Once the dead swap pages problem is fixed it is time to optimize >swapoff. I think fixing the orphaned swap pages problem will eliminate the problem all to

Re: Please test: workaround to help swapoff behaviour

2001-06-09 Thread Eric W. Biederman
"Bulent Abali" <[EMAIL PROTECTED]> writes: > >Bulent, > > > >Could you please check if 2.4.6-pre2+the schedule patch has better > >swapoff behaviour for you? > > Marcelo, > > It works as expected. Doesn't lockup the box however swapoff keeps burning > the CPU cycles. It took 4 1/2 minutes to

Re: Please test: workaround to help swapoff behaviour

2001-06-09 Thread Bulent Abali
>Bulent, > >Could you please check if 2.4.6-pre2+the schedule patch has better >swapoff behaviour for you? Marcelo, It works as expected. Doesn't lockup the box however swapoff keeps burning the CPU cycles. It took 4 1/2 minutes to swapoff about 256MB of swap content. Shutdown took just as

Re: Please test: workaround to help swapoff behaviour

2001-06-08 Thread Bulent Abali
>> I looked at try_to_unuse in swapfile.c. I believe that the algorithm is >> broken. >> For each and every swap entry it is walking the entire process list >> (for_each_task(p)). It is also grabbing a whole bunch of locks >> for each swap entry. It might be worthwhile processing swap entries

Re: Please test: workaround to help swapoff behaviour

2001-06-08 Thread Marcelo Tosatti
On Thu, 7 Jun 2001, Bulent Abali wrote: > > > > > >This is for the people who has been experiencing the lockups while running > >swapoff. > > > >Please test. (against 2.4.6-pre1) > > > > > >--- linux.orig/mm/swapfile.c Wed Jun 6 18:16:45 2001 > >+++ linux/mm/swapfile.c Thu Jun 7 16:06:11

Re: Please test: workaround to help swapoff behaviour

2001-06-07 Thread Marcelo Tosatti
On Thu, 7 Jun 2001, Bulent Abali wrote: > > I tested your patch against 2.4.5. It works. No more lockups. Without > the > patch it took 14 minutes 51 seconds to complete swapoff (this is to recover > 1.5GB of > swap space). During this time the system was frozen. No keyboard, no > screen,

Re: Please test: workaround to help swapoff behaviour

2001-06-07 Thread Bulent Abali
>This is for the people who has been experiencing the lockups while running >swapoff. > >Please test. (against 2.4.6-pre1) > > >--- linux.orig/mm/swapfile.c Wed Jun 6 18:16:45 2001 >+++ linux/mm/swapfile.c Thu Jun 7 16:06:11 2001 >@@ -345,6 +345,8 @@ > /* > * Find a swap pag

Please test: workaround to help swapoff behaviour

2001-06-07 Thread Marcelo Tosatti
On Thu, 7 Jun 2001, Marcelo Tosatti wrote: > > On Thu, 7 Jun 2001, Mike Galbraith wrote: > > > On 6 Jun 2001, Eric W. Biederman wrote: > > > > > Mike Galbraith <[EMAIL PROTECTED]> writes: > > > > > > > > If you could confirm this by calling swapoff sometime other than at > > > > > reboot tim