[Momonga-devel.ja:02834] Re: kernel-p4-smp-2.6.9-0.4.1mで1個のCPUしか使ってくれない
- From: Masanobu Sato <m.sato@xxxxxxxxxxxx>
- Date: Tue, 19 Oct 2004 19:17:10 +0900 (JST)
佐藤@滋賀県です
From: tab@xxxxxxxxxxxxxxxxx
Subject: [Momonga-devel.ja:02830] Re: kernel-p4-smp-2.6.9-0.4.1mで1個のCPUしか使ってくれない
Date: Mon, 18 Oct 2004 22:58:50 +0900 (JST)
> > http://softwaresuspend.berlios.de/features.html
> > によるとkernel2.6のSMPは正式にはサポートされてないようです.
> >
> > - 該当設定をconfig-genericから抜いて config-`arch`に移動
> > - kernel.specでupの時だけpatchを適用するよう変更
> > したいと思います.
>
> 変更しました.
この変更に対して、以下の不具合があります。
upだけにしかpatchが当たらない関係で、buildup以外
(smpだけでなく、buildup以外の全て)は、swsus2パッチ
が当たっていることを前提としたパッチのためにFail
してしまいます。具体的には、
Patch530: linux-2.6.9-rc3-dbus.patch
で、失敗します。
この不具合を解消するパッチを以下に付けます。まぁ、最初の
ヘッダーファイルを挿入するところだけが問題なので何かスマー
トなやり方が有りそうですが。
Index: linux-2.6.9-rc3-dbus.patch
===================================================================
--- linux-2.6.9-rc3-dbus.patch (revision 3438)
+++ linux-2.6.9-rc3-dbus.patch (working copy)
@@ -26,15 +26,15 @@
diff -urN -x'*rej' -x'*~' linux-2.6.9-rc3.orig/drivers/md/md.c linux-2.6.9-rc3/drivers/md/md.c
--- linux-2.6.9-rc3.orig/drivers/md/md.c 2004-10-10 04:34:16.247946704 +0900
+++ linux-2.6.9-rc3/drivers/md/md.c 2004-10-10 04:52:44.211510640 +0900
-@@ -36,6 +36,7 @@
- #include <linux/sysctl.h>
+@@ -37,6 +37,7 @@
#include <linux/devfs_fs_kernel.h>
#include <linux/buffer_head.h> /* for invalidate_bdev */
+ #include <linux/suspend.h>
+#include <linux/dbus.h>
#include <linux/init.h>
-@@ -3318,6 +3319,7 @@
+@@ -3320,6 +3321,7 @@
int last_mark,m;
struct list_head *tmp;
sector_t last_check;
@@ -42,7 +42,7 @@
/* just incase thread restarts... */
if (test_bit(MD_RECOVERY_DONE, &mddev->recovery))
-@@ -3369,6 +3371,7 @@
+@@ -3371,6 +3373,7 @@
/* recovery follows the physical size of devices */
max_sectors = mddev->size << 1;
@@ -50,7 +50,7 @@
printk(KERN_INFO "md: syncing RAID array %s\n", mdname(mddev));
printk(KERN_INFO "md: minimum _guaranteed_ reconstruction speed:"
" %d KB/sec/disc.\n", sysctl_speed_limit_min);
-@@ -3473,6 +3476,7 @@
+@@ -3475,6 +3478,7 @@
}
}
printk(KERN_INFO "md: %s: sync done.\n",mdname(mddev));
-----------------------------------------------------
佐藤雅伸 (m.sato@xxxxxxxxxxxx)