commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnumach] 01/01: patches/git-vm-tune.patch: New patch that tunes VM para


From: Samuel Thibault
Subject: [gnumach] 01/01: patches/git-vm-tune.patch: New patch that tunes VM parameters.
Date: Sat, 30 Aug 2014 10:59:51 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch master
in repository gnumach.

commit cde88428a5229988f17a3fee626ca3aea7b0717e
Author: Samuel Thibault <address@hidden>
Date:   Sat Aug 30 12:59:37 2014 +0200

    patches/git-vm-tune.patch: New patch that tunes VM parameters.
---
 debian/changelog                 |   1 +
 debian/patches/git-vm-tune.patch | 109 +++++++++++++++++++++++++++++++++++++++
 debian/patches/series            |   1 +
 3 files changed, 111 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index ee1268c..ac61486 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ gnumach (2:1.4-12) UNRELEASED; urgency=medium
 
   * rules: Rebuild info documentation once (in the source tree) before building
     all variants in parallel. Closes: Bug#756909.
+  * patches/git-vm-tune.patch: New patch that tunes VM parameters.
 
  -- Samuel Thibault <address@hidden>  Mon, 11 Aug 2014 23:12:59 +0200
 
diff --git a/debian/patches/git-vm-tune.patch b/debian/patches/git-vm-tune.patch
new file mode 100644
index 0000000..ed42ffd
--- /dev/null
+++ b/debian/patches/git-vm-tune.patch
@@ -0,0 +1,109 @@
+commit ed32cdc81be98287e4678bdb4a71a578b548580d
+Author: Samuel Thibault <address@hidden>
+Date:   Sat Aug 30 12:48:44 2014 +0200
+
+    Bump NR_GRANT_PAGES
+    
+    This has shown needed on buildds with several disks and network
+    interfaces.
+    
+    * xen/grant.c (NR_GRANT_PAGES): Increase from 4 to 8.
+
+diff --git a/xen/grant.c b/xen/grant.c
+index 3d5c3fe..ae3a7bf 100644
+--- a/xen/grant.c
++++ b/xen/grant.c
+@@ -25,7 +25,7 @@
+ #include "grant.h"
+ 
+ #define NR_RESERVED_ENTRIES 8
+-#define NR_GRANT_PAGES 4
++#define NR_GRANT_PAGES 8
+ 
+ decl_simple_lock_data(static,lock);
+ static struct grant_entry *grants;
+commit c7cdf5ff96e7c3bb008877893aa194908dca2185
+Author: Samuel Thibault <address@hidden>
+Date:   Sat Aug 30 12:51:11 2014 +0200
+
+    Increate the pageout thread priority
+    
+    * vm/vm_pageout.c (vm_pageout): Set the priority to 0.
+
+diff --git a/vm/vm_pageout.c b/vm/vm_pageout.c
+index 7ac43d6..d57da78 100644
+--- a/vm/vm_pageout.c
++++ b/vm/vm_pageout.c
+@@ -912,6 +912,7 @@ void vm_pageout(void)
+ 
+       current_thread()->vm_privilege = TRUE;
+       stack_privilege(current_thread());
++      thread_set_own_priority(0);
+ 
+       /*
+        *      Initialize some paging parameters.
+commit 91f0887ca2345c2bd02747e4b437076641d77cd9
+Author: Samuel Thibault <address@hidden>
+Date:   Sat Aug 30 12:55:14 2014 +0200
+
+    Tune pageout parameters
+    
+    This targets having always at least 8% free memory instead of just 1%.
+    This has shown improving buildd stability a lot. Also increase the
+    reserved amount to nowadays standards.
+    
+    * vm/vm_pageout.c (VM_PAGE_FREE_TARGET): Increase to 10%.
+    (VM_PAGE_FREE_MIN): Increase to 8%.
+    (VM_PAGE_FREE_RESERVED): Increase to 500 pages.
+    (VM_PAGEOUT_RESERVED_INTERNAL): Increase to 150 pages.
+    (VM_PAGEOUT_RESERVED_REALLY): Increase to 100 pages.
+
+diff --git a/vm/vm_pageout.c b/vm/vm_pageout.c
+index d57da78..ecedb57 100644
+--- a/vm/vm_pageout.c
++++ b/vm/vm_pageout.c
+@@ -97,7 +97,7 @@
+  */
+ 
+ #ifndef       VM_PAGE_FREE_TARGET
+-#define       VM_PAGE_FREE_TARGET(free)       (15 + (free) / 80)
++#define       VM_PAGE_FREE_TARGET(free)       (150 + (free) * 10 / 100)
+ #endif        /* VM_PAGE_FREE_TARGET */
+ 
+ /*
+@@ -106,7 +106,7 @@
+  */
+ 
+ #ifndef       VM_PAGE_FREE_MIN
+-#define       VM_PAGE_FREE_MIN(free)  (10 + (free) / 100)
++#define       VM_PAGE_FREE_MIN(free)  (100 + (free) * 8 / 100)
+ #endif        /* VM_PAGE_FREE_MIN */
+ 
+ /*      When vm_page_external_count exceeds vm_page_external_limit, 
+@@ -132,7 +132,7 @@
+  *    operation by dipping into the reserved pool of pages.  */
+ 
+ #ifndef       VM_PAGE_FREE_RESERVED
+-#define       VM_PAGE_FREE_RESERVED                   50
++#define       VM_PAGE_FREE_RESERVED                   500
+ #endif        /* VM_PAGE_FREE_RESERVED */
+ 
+ /*
+@@ -144,7 +144,7 @@
+  */
+ 
+ #ifndef       VM_PAGEOUT_RESERVED_INTERNAL
+-#define       VM_PAGEOUT_RESERVED_INTERNAL(reserve)   ((reserve) - 25)
++#define       VM_PAGEOUT_RESERVED_INTERNAL(reserve)   ((reserve) - 250)
+ #endif        /* VM_PAGEOUT_RESERVED_INTERNAL */
+ 
+ /*
+@@ -156,7 +156,7 @@
+  */
+ 
+ #ifndef       VM_PAGEOUT_RESERVED_REALLY
+-#define       VM_PAGEOUT_RESERVED_REALLY(reserve)     ((reserve) - 40)
++#define       VM_PAGEOUT_RESERVED_REALLY(reserve)     ((reserve) - 400)
+ #endif        /* VM_PAGEOUT_RESERVED_REALLY */
+ 
+ unsigned int vm_pageout_reserved_internal = 0;
diff --git a/debian/patches/series b/debian/patches/series
index af4cf3f..6a35a12 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -22,3 +22,4 @@ git-mach_debug.patch
 git-mach_debug2.patch
 git-halt.patch
 git-xen_races.patch
+git-vm-tune.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/gnumach.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]