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 307376 Details for
Bug 449381
System hangs when using /proc/sys/vm/drop_caches under heavy load on large system.
[?]
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]
Patch that fixes this problem.
rhel4-drop_caches-fix.patch (text/plain), 2.04 KB, created by
Larry Woodman
on 2008-06-02 15:04:35 UTC
(
hide
)
Description:
Patch that fixes this problem.
Filename:
MIME Type:
Creator:
Larry Woodman
Created:
2008-06-02 15:04:35 UTC
Size:
2.04 KB
patch
obsolete
>--- linux-2.6.9/fs/inode.c.orig 2008-05-29 16:12:17.000000000 -0400 >+++ linux-2.6.9/fs/inode.c 2008-05-29 16:13:25.000000000 -0400 >@@ -315,7 +315,7 @@ static int invalidate_list(struct list_h > if (inode->i_sb != sb) > continue; > if (pages) >- invalidate_inode_pages(inode->i_mapping); >+ invalidate_all_mapping_pages(inode->i_mapping); > else { > invalidate_inode_buffers(inode); > if (!atomic_read(&inode->i_count)) { >--- linux-2.6.9/mm/truncate.c.orig 2008-05-29 16:12:18.000000000 -0400 >+++ linux-2.6.9/mm/truncate.c 2008-05-29 16:13:25.000000000 -0400 >@@ -184,6 +184,38 @@ void truncate_inode_pages(struct address > > EXPORT_SYMBOL(truncate_inode_pages); > >+void invalidate_all_mapping_pages(struct address_space *mapping) >+{ >+ struct pagevec pvec; >+ pgoff_t next = 0; >+ int i; >+ >+ pagevec_init(&pvec, 0); >+ while (next <= ~0UL && >+ pagevec_lookup(&pvec, mapping, next, PAGEVEC_SIZE)) { >+ for (i = 0; i < pagevec_count(&pvec); i++) { >+ struct page *page = pvec.pages[i]; >+ >+ if (TestSetPageLocked(page)) { >+ next++; >+ continue; >+ } >+ if (page->index > next) >+ next = page->index; >+ next++; >+ if (!PageDirty(page) && !PageWriteback(page) && >+ !page_mapped(page)) >+ invalidate_complete_page(mapping, page); >+ unlock_page(page); >+ if (next > ~0UL) >+ break; >+ } >+ pagevec_release(&pvec); >+ } >+ return; >+} >+ >+ > /** > * invalidate_mapping_pages - Invalidate all the unlocked pages of one inode > * @mapping: the address_space which holds the pages to invalidate >--- linux-2.6.9/include/linux/fs.h.orig 2008-05-29 16:16:03.000000000 -0400 >+++ linux-2.6.9/include/linux/fs.h 2008-05-29 16:15:53.000000000 -0400 >@@ -1380,6 +1380,7 @@ extern int invalidate_partition(struct g > unsigned long invalidate_mapping_pages(struct address_space *mapping, > pgoff_t start, pgoff_t end); > unsigned long invalidate_inode_pages(struct address_space *mapping); >+void invalidate_all_mapping_pages(struct address_space *mapping); > static inline void invalidate_remote_inode(struct inode *inode) > { > if (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
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 449381
: 307376