Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 317511 Details for
Bug 463504
Hang in shrink_zone during swap pressure, due to direct reclaim threads
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
2.6.18 proposed patch (backported from mainline)
linux-2.6.18-vm-shrink-zone.patch (text/plain), 1.21 KB, created by
John Sobecki
on 2008-09-23 18:56:08 UTC
(
hide
)
Description:
2.6.18 proposed patch (backported from mainline)
Filename:
MIME Type:
Creator:
John Sobecki
Created:
2008-09-23 18:56:08 UTC
Size:
1.21 KB
patch
obsolete
>diff -up linux-2.6.18.x86_64/mm/vmscan.c.orig linux-2.6.18.x86_64/mm/vmscan.c >--- linux-2.6.18.x86_64/mm/vmscan.c.orig 2008-05-15 14:24:08.767239000 -0700 >+++ linux-2.6.18.x86_64/mm/vmscan.c 2008-05-15 14:35:03.003466000 -0700 >@@ -658,6 +658,34 @@ static unsigned long shrink_inactive_lis > > nr_scanned += nr_scan; > nr_freed = shrink_page_list(&page_list, sc); >+ >+ /* >+ * If we are direct reclaiming for contiguous pages and we do >+ * not reclaim everything in the list, try again and wait >+ * for IO to complete. This will stall high-order allocations >+ * but that should be acceptable to the caller >+ */ >+ >+ if (nr_freed < nr_taken && !current_is_kswapd()) { >+ long nr_active_pages = 0; >+ struct page *pg; >+ >+ blk_congestion_wait(WRITE, HZ/10); >+ >+ /* >+ * The attempt at page out may have made some >+ * of the pages active, mark them inactive >+ */ >+ list_for_each_entry(pg, &page_list, lru) { >+ if (PageActive(pg)) { >+ nr_active_pages++; >+ ClearPageActive(pg); >+ } >+ } >+ count_vm_events(PGDEACTIVATE, nr_active_pages); >+ nr_freed += shrink_page_list(&page_list, sc); >+ } >+ > nr_reclaimed += nr_freed; > local_irq_disable(); > if (current_is_kswapd()) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 463504
: 317511 |
317531
|
319367