Sorry... I have corrected tha patch. Thanks Amol --- vmscan_orig.c Fri Jan 11 13:55:25 2002 +++ vmscan.c Fri Jan 11 13:56:40 2002 @@ -387,6 +387,8 @@ wait_on_page(page); page_cache_release(page); spin_lock(&pagemap_lru_lock); + list_del(&page.lru); + list_add(&page.lru,inactive_list.prev); } continue; } Ken Brownfield on 01/11/2002 12:34:09 PM To: Amol Lad/HSS@HSS cc: Subject: Re: [PATCH] locked page handling in shrink_cache() : revised FWIW, on a 2x933 P3, 256MB RAM, running "make -j36 bzImage". -- Ken. brownfld@irridia.com ksymoops 2.4.3 on i686 2.4.18-pre3kb0. Options used -V (default) -k ./ksyms (specified) -l /proc/modules (default) -o /lib/modules/2.4.18-pre3kb0/ (default) -m /boot/System.map-x (specified) kernel BUG at vmscan.c:387! invalid operand: 0000 CPU: 0 EIP: 0010:[] Not tainted Using defaults from ksymoops -t elf32-i386 -a i386 EFLAGS: 00010282 eax: 0000001c ebx: c13657dc ecx: c02d4568 edx: 00003998 esi: c13657c0 edi: 00000000 ebp: 00000010 esp: c9607ddc ds: 0018 es: 0018 ss: 0018 Process cc1 (pid: 3110, stackpage=c9607000) Stack: c027a710 00000183 00000020 000001d2 00000020 00000006 c1407070 0000006e 0000043f 000001d2 c02d5928 c0130e07 00000006 00000084 00000006 000001d2 c02d5928 000001d2 000032c6 c02d5928 c0130e71 00000020 00000000 00000000 Call Trace: [] [] [] [] [] [] [] [] [] [] [] [] [] [] Code: 0f 0b 83 c4 08 8b 53 04 8b 03 89 50 04 89 02 a1 04 81 35 c0 >>EIP; c013092c <===== Trace; c0130e06 Trace; c0130e70 Trace; c013193a Trace; c0131c22 <__alloc_pages+11e/17c> Trace; c012aab2 Trace; c01318c0 <_alloc_pages+18/1c> Trace; c0126ba6 Trace; c0126cae Trace; c0126ec4 Trace; c0113d16 Trace; c0113b88 Trace; c01282ee Trace; c0127344 Trace; c01071fc Code; c013092c 00000000 <_EIP>: Code; c013092c <===== 0: 0f 0b ud2a <===== Code; c013092e 2: 83 c4 08 add $0x8,%esp Code; c0130930 5: 8b 53 04 mov 0x4(%ebx),%edx Code; c0130934 8: 8b 03 mov (%ebx),%eax Code; c0130936 a: 89 50 04 mov %edx,0x4(%eax) Code; c0130938 d: 89 02 mov %eax,(%edx) Code; c013093a f: a1 04 81 35 c0 mov 0xc0358104,%eax On Tue, Jan 08, 2002 at 10:51:24AM +0530, alad@hss.hns.com wrote: | | | | Whenever the shrink_cache wakes up after a laundered page in unlocked, it should | move that page to the end of inactive list so that | the page can be freed immediately and shrink_cache dosen't have to wait for | complete list scan before freeing this page. | | The patch is created against standard redhat 7.1 distribution 2.4.16 kernel. | Let me know if I need to create it for a different kernel release. | | regards | Amol | | | --- vmscan_orig.c Mon Jan 7 11:47:43 2002 | +++ vmscan.c Mon Jan 7 11:49:07 2002 | @@ -387,6 +387,8 @@ | wait_on_page(page); | page_cache_release(page); | spin_lock(&pagemap_lru_lock); | + list_del(&page->lru); | + list_add(&page->lru,inactive_list.prev); | } | continue; | } | |  | | | - | To unsubscribe from this list: send the line "unsubscribe linux-kernel" in | the body of a message to majordomo@vger.kernel.org | More majordomo info at http://vger.kernel.org/majordomo-info.html | Please read the FAQ at http://www.tux.org/lkml/ Hughes Software Systems - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/