* [uml-devel] Any complaints about parallel make in 2.6.10-rc?
@ 2004-12-07 5:28 Blaisorblade
2004-12-07 5:47 ` [uml-devel] Re: [uml-user] " Christopher S. Aker
0 siblings, 1 reply; 4+ messages in thread
From: Blaisorblade @ 2004-12-07 5:28 UTC (permalink / raw)
To: user-mode-linux-devel, user-mode-linux-user; +Cc: Christopher S. Aker
I've just tried doing this test on a clean tree 2.6.10-rc3, and it worked very
well (I interrupted it after enough progress):
make ARCH=um -j10
Since somebody (maybe Christopher Aker) said that parallel make was broken in
2.6.10-rc, I'm asking to report it in detail, if the complaint is correct.
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [uml-devel] Re: [uml-user] Any complaints about parallel make in 2.6.10-rc?
2004-12-07 5:28 [uml-devel] Any complaints about parallel make in 2.6.10-rc? Blaisorblade
@ 2004-12-07 5:47 ` Christopher S. Aker
2004-12-07 6:25 ` Blaisorblade
0 siblings, 1 reply; 4+ messages in thread
From: Christopher S. Aker @ 2004-12-07 5:47 UTC (permalink / raw)
To: Blaisorblade, user-mode-linux-devel, user-mode-linux-user
> Since somebody (maybe Christopher Aker) said that parallel make was broken in
> 2.6.10-rc, I'm asking to report it in detail, if the complaint is correct.
Odd.. "make ARCH=um -jN" works, but "make -jN ARCH=um" doesn't. How did I miss that?
-Chris
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [uml-devel] Re: [uml-user] Any complaints about parallel make in 2.6.10-rc?
2004-12-07 5:47 ` [uml-devel] Re: [uml-user] " Christopher S. Aker
@ 2004-12-07 6:25 ` Blaisorblade
2004-12-07 6:37 ` Blaisorblade
0 siblings, 1 reply; 4+ messages in thread
From: Blaisorblade @ 2004-12-07 6:25 UTC (permalink / raw)
To: Christopher S. Aker; +Cc: user-mode-linux-devel, user-mode-linux-user
[-- Attachment #1: Type: text/plain, Size: 908 bytes --]
On Tuesday 07 December 2004 06:47, Christopher S. Aker wrote:
> > Since somebody (maybe Christopher Aker) said that parallel make was
> > broken in 2.6.10-rc, I'm asking to report it in detail, if the complaint
> > is correct.
>
> Odd.. "make ARCH=um -jN" works, but "make -jN ARCH=um" doesn't. How did I
> miss that?
??? Well, missing such a difference is *obvious*, since it does not make sense
at all.
I'm instead discovering a more interesting issue, due to some mainline updates
to Kconfig, preventing Ramdisk code to build. Trivial fix attached. A less
trivial fix, i.e. uml-depend-out-main-block-Kconfig.patch, cleaning things up
definitely (i.e. going to drop arch/um/Kconfig_block , which is a selected
duplicate of what's in drivers/block/Kconfig), is attached too.
> -Chris
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade
[-- Attachment #2: uml-kconfig-block-update.patch --]
[-- Type: text/x-diff, Size: 1885 bytes --]
Update the text of Kconfig_block to match mainline changes. I'll later maybe
submit a cleanup about the duplication of part of drivers/block/Kconfig in
Kconfig_block - with appropriate fixes, we could just use
drivers/block/Kconfig.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
---
linux-2.6.10-rc-paolo/arch/um/Kconfig_block | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletion(-)
diff -puN arch/um/Kconfig_block~uml-kconfig-block-update arch/um/Kconfig_block
--- linux-2.6.10-rc/arch/um/Kconfig_block~uml-kconfig-block-update 2004-12-07 07:12:44.045672960 +0100
+++ linux-2.6.10-rc-paolo/arch/um/Kconfig_block 2004-12-07 07:12:44.048672504 +0100
@@ -43,14 +43,32 @@ config BLK_DEV_NBD
config BLK_DEV_RAM
tristate "RAM disk support"
+config BLK_DEV_RAM_COUNT
+ int "Default number of RAM disks" if BLK_DEV_RAM
+ default "16"
+ help
+ The default value is 16 RAM disks. Change this if you know what
+ are doing. If you boot from a filesystem that needs to be extracted
+ in memory, you will need at least one RAM disk (e.g. root on cramfs).
+
config BLK_DEV_RAM_SIZE
- int "Default RAM disk size"
+ int "Default RAM disk size (kbytes)"
depends on BLK_DEV_RAM
default "4096"
+ help
+ The default value is 4096 kilobytes. Only change this if you know
+ what are you doing. If you are using IBM S/390, then set this to
+ 8192.
config BLK_DEV_INITRD
bool "Initial RAM disk (initrd) support"
depends on BLK_DEV_RAM=y
+ help
+ The initial RAM disk is a RAM disk that is loaded by the boot loader
+ (loadlin or lilo) and that is mounted as root before the normal boot
+ procedure. It is typically used to load modules needed to mount the
+ "real" root file system, etc. See <file:Documentation/initrd.txt>
+ for details.
#Copied directly from drivers/block/Kconfig
config INITRAMFS_SOURCE
_
[-- Attachment #3: uml-depend-out-main-block-Kconfig.patch --]
[-- Type: text/x-diff, Size: 2274 bytes --]
Finally, we end with this the need to update arch/um/Kconfig_block with
changes in drivers/block/Kconfig.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
---
linux-2.6.10-rc-paolo/arch/um/Kconfig | 2 +-
linux-2.6.10-rc-paolo/drivers/block/Kconfig | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff -puN drivers/block/Kconfig~uml-depend-out-main-block-Kconfig drivers/block/Kconfig
--- linux-2.6.10-rc/drivers/block/Kconfig~uml-depend-out-main-block-Kconfig 2004-12-07 07:20:37.450704456 +0100
+++ linux-2.6.10-rc-paolo/drivers/block/Kconfig 2004-12-07 07:20:37.456703544 +0100
@@ -6,7 +6,7 @@ menu "Block devices"
config BLK_DEV_FD
tristate "Normal floppy disk support"
- depends on (!ARCH_S390 && !M68K && !IA64) || Q40 || (SUN3X && BROKEN)
+ depends on (!ARCH_S390 && !M68K && !IA64 && !USERMODE) || Q40 || (SUN3X && BROKEN)
---help---
If you want to use the floppy disk drive(s) of your PC under Linux,
say Y. Information about this driver, especially important for IBM
@@ -384,9 +384,11 @@ config INITRAMFS_SOURCE
If you are not sure, leave it blank.
+#XXX - it makes sense to enable this only for 32-bit subarch's, not for x86_64
+#for instance.
config LBD
bool "Support for Large Block Devices"
- depends on X86 || MIPS32 || PPC32 || ARCH_S390_31 || SUPERH
+ depends on X86 || MIPS32 || PPC32 || ARCH_S390_31 || SUPERH || USERMODE
help
Say Y here if you want to attach large (bigger than 2TB) discs to
your machine, or if you want to have a raid or loopback device
@@ -394,6 +396,7 @@ config LBD
config CDROM_PKTCDVD
tristate "Packet writing on CD/DVD media"
+ depends on !USERMODE
help
If you have a CDROM drive that supports packet writing, say Y to
include preliminary support. It should work with any MMC/Mt Fuji
diff -puN arch/um/Kconfig~uml-depend-out-main-block-Kconfig arch/um/Kconfig
--- linux-2.6.10-rc/arch/um/Kconfig~uml-depend-out-main-block-Kconfig 2004-12-07 07:20:37.452704152 +0100
+++ linux-2.6.10-rc-paolo/arch/um/Kconfig 2004-12-07 07:20:37.456703544 +0100
@@ -238,7 +238,7 @@ source "drivers/base/Kconfig"
source "arch/um/Kconfig_char"
-source "arch/um/Kconfig_block"
+source "drivers/block/Kconfig"
config NETDEVICES
bool
_
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [uml-devel] Re: [uml-user] Any complaints about parallel make in 2.6.10-rc?
2004-12-07 6:25 ` Blaisorblade
@ 2004-12-07 6:37 ` Blaisorblade
0 siblings, 0 replies; 4+ messages in thread
From: Blaisorblade @ 2004-12-07 6:37 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: Christopher S. Aker, user-mode-linux-user
[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]
On Tuesday 07 December 2004 07:25, Blaisorblade wrote:
> On Tuesday 07 December 2004 06:47, Christopher S. Aker wrote:
> > > Since somebody (maybe Christopher Aker) said that parallel make was
> > > broken in 2.6.10-rc, I'm asking to report it in detail, if the
> > > complaint is correct.
> >
> > Odd.. "make ARCH=um -jN" works, but "make -jN ARCH=um" doesn't. How did
> > I miss that?
>
> ??? Well, missing such a difference is *obvious*, since it does not make
> sense at all.
I've tested both things... and it appears I get the same problems / success
with both things:
> I'm instead discovering a more interesting issue, due to some mainline
> updates to Kconfig, preventing Ramdisk code to build. Trivial fix attached.
> A less trivial fix, i.e. uml-depend-out-main-block-Kconfig.patch, cleaning
> things up definitely (i.e. going to drop arch/um/Kconfig_block , which is a
> selected duplicate of what's in drivers/block/Kconfig), is attached too.
In the second one, I forgot to add UBD (and COW and CONFIG_MMAPER) config
option to drivers/block/Kconfig, so use the updated version I'm attaching.
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade
[-- Attachment #2: uml-depend-out-main-block-Kconfig.patch --]
[-- Type: text/x-diff, Size: 3930 bytes --]
Finally, we end with this the need to update arch/um/Kconfig_block with
changes in drivers/block/Kconfig.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
---
linux-2.6.10-rc-paolo/arch/um/Kconfig | 2 -
linux-2.6.10-rc-paolo/drivers/block/Kconfig | 40 ++++++++++++++++++++++++++--
2 files changed, 39 insertions(+), 3 deletions(-)
diff -puN drivers/block/Kconfig~uml-depend-out-main-block-Kconfig drivers/block/Kconfig
--- linux-2.6.10-rc/drivers/block/Kconfig~uml-depend-out-main-block-Kconfig 2004-12-07 07:35:05.993665856 +0100
+++ linux-2.6.10-rc-paolo/drivers/block/Kconfig 2004-12-07 07:35:39.037642408 +0100
@@ -6,7 +6,7 @@ menu "Block devices"
config BLK_DEV_FD
tristate "Normal floppy disk support"
- depends on (!ARCH_S390 && !M68K && !IA64) || Q40 || (SUN3X && BROKEN)
+ depends on (!ARCH_S390 && !M68K && !IA64 && !USERMODE) || Q40 || (SUN3X && BROKEN)
---help---
If you want to use the floppy disk drive(s) of your PC under Linux,
say Y. Information about this driver, especially important for IBM
@@ -208,6 +208,39 @@ config BLK_DEV_UMEM
one is chosen dynamically. Use "devfs" or look in /proc/devices
for the device number
+config BLK_DEV_UBD
+ bool "Virtual block device"
+ depends on USERMODE
+ help
+ The User-Mode Linux port includes a driver called UBD which will let
+ you access arbitrary files on the host computer as block devices.
+ Unless you know that you do not need such virtual block devices say
+ Y here.
+
+config BLK_DEV_UBD_SYNC
+ bool "Always do synchronous disk IO for UBD"
+ depends on BLK_DEV_UBD
+ help
+ Writes to the virtual block device are not immediately written to the
+ host's disk; this may cause problems if, for example, the User-Mode
+ Linux 'Virtual Machine' uses a journalling filesystem and the host
+ computer crashes.
+
+ Synchronous operation (i.e. always writing data to the host's disk
+ immediately) is configurable on a per-UBD basis by using a special
+ kernel command line option. Alternatively, you can say Y here to
+ turn on synchronous operation by default for all block devices.
+
+ If you're running a journalling file system (like reiserfs, for
+ example) in your virtual machine, you will want to say Y here. If
+ you care for the safety of the data in your virtual machine, Y is a
+ wise choice too. In all other cases (for example, if you're just
+ playing around with User-Mode Linux) you can choose N.
+
+config BLK_DEV_COW_COMMON
+ bool
+ default BLK_DEV_UBD
+
config BLK_DEV_LOOP
tristate "Loopback device support"
---help---
@@ -384,9 +417,11 @@ config INITRAMFS_SOURCE
If you are not sure, leave it blank.
+#XXX - it makes sense to enable this only for 32-bit subarch's, not for x86_64
+#for instance.
config LBD
bool "Support for Large Block Devices"
- depends on X86 || MIPS32 || PPC32 || ARCH_S390_31 || SUPERH
+ depends on X86 || MIPS32 || PPC32 || ARCH_S390_31 || SUPERH || USERMODE
help
Say Y here if you want to attach large (bigger than 2TB) discs to
your machine, or if you want to have a raid or loopback device
@@ -394,6 +429,7 @@ config LBD
config CDROM_PKTCDVD
tristate "Packet writing on CD/DVD media"
+ depends on !USERMODE
help
If you have a CDROM drive that supports packet writing, say Y to
include preliminary support. It should work with any MMC/Mt Fuji
diff -puN arch/um/Kconfig~uml-depend-out-main-block-Kconfig arch/um/Kconfig
--- linux-2.6.10-rc/arch/um/Kconfig~uml-depend-out-main-block-Kconfig 2004-12-07 07:35:05.995665552 +0100
+++ linux-2.6.10-rc-paolo/arch/um/Kconfig 2004-12-07 07:35:05.999664944 +0100
@@ -238,7 +238,7 @@ source "drivers/base/Kconfig"
source "arch/um/Kconfig_char"
-source "arch/um/Kconfig_block"
+source "drivers/block/Kconfig"
config NETDEVICES
bool
_
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-12-07 6:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-07 5:28 [uml-devel] Any complaints about parallel make in 2.6.10-rc? Blaisorblade
2004-12-07 5:47 ` [uml-devel] Re: [uml-user] " Christopher S. Aker
2004-12-07 6:25 ` Blaisorblade
2004-12-07 6:37 ` Blaisorblade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox