Bug 206113
| Summary: | [PATCH][RHEL4U4] Fix estimate-mistake (e820-memory-hole and numnodes) of available_memory in x86_64 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 4 | Reporter: | Masaki MAENO <maeno.masaki> | ||||||
| Component: | kernel | Assignee: | Larry Woodman <lwoodman> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Brian Brock <bbrock> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 4.4 | CC: | handa.koki, jbaron | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | RHSA-2008-0665 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2008-07-24 19:11:51 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Masaki MAENO
2006-09-12 07:24:24 UTC
Created attachment 136054 [details]
numnodes patch (fix potential nodes to online nodes)
Created attachment 136056 [details]
e820 memory_holes patch
- numnodes patch (linux-2.6.9-numnodes.patch)
- e820 memory_holes patch (linux-2.6.13-e820.patch)
*** Bug 206111 has been marked as a duplicate of this bug. *** This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. This request was previously evaluated by Red Hat Product Management for inclusion in the current Red Hat Enterprise Linux release, but Red Hat was unable to resolve it in time. This request will be reviewed for a future Red Hat Enterprise Linux release. I understood the evaluation and status of RedHat. I think that this problem is not a critical problem, too. But, I hope that you will take it to RHEL4U7 because I think that these patch are safe.
Actually, these patches should no longer be necessary because I made these
changes to get_dirty_limits in RHEL4-U6.
-----------------------------------------------------------------------------
+ /*
+ * Arbitrarily assume that 10% of the slab
+ * is reclaimable. 2.6.19 and beyond actually
+ * track the amount of slab which is reclaimable,
+ * the statistic we really need here. In the absence
+ * of that we prefer to be conservative here.
+ */
+ available_memory = read_page_state(nr_slab) / 10;
+
+ for_each_zone(zone) {
+#ifdef CONFIG_HIGHMEM
+ if (is_highmem(zone) && mapping &&
+ !(mapping_gfp_mask(mapping) & __GFP_HIGHMEM)) {
+ no_highmem++;
+ continue;
+ }
+#endif
+ available_memory += zone->nr_active;
+ available_memory += zone->nr_inactive;
+ available_memory += zone->free_pages;
+ }
--------------------------------------------------------------------------
Can someone verify that the latest RHEL4-U6 does the right this in these cases???
Thanks, Larry Woodman
I understand that "available_memory" is calculated based on not "total_pages" but an presumption empty area (= Slab * 10% + Active + Inactive + Free) of that time. (My Impression: "Active * about 50%" is better than "Active".) I think that the problem will be improved if corrected like this. But, I cannot prepare the machine (CPU: AMD64 Opteron939 x 2 (NUMA node: potential node = 4, active node = 1)) for the verification now. I am sorry. Please verify that latest RHEL4.6 beta does the right this in its cases. Larry Woodman, Sorry. I understood its patch. I confirmed that vm.dirty_ratio became to work bacause of get_dirty_limits() by linux-2.6.9-vm-balance.patch into kernel-2.6.9-55.0.6.EL. Thank you very much. Committed in 68.21.EL . RPMS are available at http://people.redhat.com/vgoyal/rhel4/ An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2008-0665.html |