Re: [PATCH] SLAB : use a multiply instead of a divide in obj_to_index()

2006-12-04 Thread Eric Dumazet
On Monday 04 December 2006 17:55, Christoph Lameter wrote: > Could you generalize the reciprocal thingy so that the division > can be used from other parts of the kernel as well? It would be useful to > separately get some cycle counts on a regular division compared with your > division. If that sh

Re: Mounting NFS root FS

2006-12-04 Thread Trond Myklebust
On Mon, 2006-12-04 at 19:12 +0200, Janne Karhunen wrote: > > 2) NFS provides persistent storage. > > To me this sounds like a chicken and an egg problem. It > both depends and provides this at the same time :/. But > hey, if it's supposed to work then OK. ??? Locking depends on persistent stora

Re: la la la la ... swappiness

2006-12-04 Thread Jeffrey Hundstad
Hello, Please forgive me if this is naive. It seems that you could recompile your tar and patch commands to use the POSIX_FADVISE(2) feature with the POSIX_FADV_NOREUSE flags. It seems these would cause the tar and patch commands to not clutter the page cache at all. It'd be nice to be abl

Re: [patch 3/5] [RFC] Add MMC Password Protection (lock/unlock) support V7: mmc_lock_unlock.diff

2006-12-04 Thread Anderson Briglia
ext Pierre Ossman wrote: Anderson Briglia wrote: @@ -244,5 +244,13 @@ struct _mmc_csd { #define SD_BUS_WIDTH_1 0 #define SD_BUS_WIDTH_4 2 +/* + * MMC_LOCK_UNLOCK modes + */ +#define MMC_LOCK_MODE_ERASE(1<<3) +#define MMC_LOCK_MODE_UNLOCK(0<<2) +#define MMC_LOCK_MODE_CLR_PWD

RE: la la la la ... swappiness

2006-12-04 Thread Tim Schmielau
On Mon, 4 Dec 2006, Aucoin wrote: > > From: Horst H. von Brand [mailto:[EMAIL PROTECTED] > > That means that there isn't a need for that memory at all (and so they > > In the current isolated non-production, not actually bearing a load test > case yes. But if I can't get it to not swap on an idle

Re: la la la la ... swappiness

2006-12-04 Thread Horst H. von Brand
Aucoin <[EMAIL PROTECTED]> wrote: > From: Horst H. von Brand [mailto:[EMAIL PROTECTED] > > That means that there isn't a need for that memory at all (and so they > In the current isolated non-production, not actually bearing a load test > case yes. But if I can't get it to not swap on an idle syst

Re: la la la la ... swappiness

2006-12-04 Thread Al Boldi
As a workaround try this: echo 2 > /proc/sys/vm/overcommit_memory echo 0 > /proc/sys/vm/overcommit_ratio Hopefully someone can fix this intrinsic swap before drop behaviour. Thanks! -- Al - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EM

Re: [PATCH] Export current_is_keventd() for libphy

2006-12-04 Thread Steve Fox
On Sun, 2006-12-03 at 01:16 -0800, Andrew Morton wrote: > On Sun, 03 Dec 2006 00:50:55 -0500 > Ben Collins <[EMAIL PROTECTED]> wrote: > > > Fixes this problem when libphy is compiled as module: > > > > WARNING: "current_is_keventd" [drivers/net/phy/libphy.ko] undefined! > > > > diff --git a/kernel

Re: [patch] remove redundant iov segment check

2006-12-04 Thread Zach Brown
On Dec 4, 2006, at 8:26 AM, Chen, Kenneth W wrote: The access_ok() and negative length check on each iov segment in function generic_file_aio_read/write are redundant. They are all already checked before calling down to these low level generic functions. ... So it's not possible to call

Re: PMTMR running too fast

2006-12-04 Thread john stultz
On Sun, 2006-12-03 at 13:50 +, Ian Campbell wrote: > In older kernels arch/i386/kernel/timers/timer_pm.c:verify_pmtmr_rate > contained a check for sensible PMTMR rate and disabled that clocksource > if it was found to be out of spec[0]. This check seems to have been lost > in the transition to

2.6.19: OOPS in cat /proc/fs/nfs/exports

2006-12-04 Thread Olaf Titz
This is 100% reproducible. It hangs exportfs on shutdown. Dec 4 19:50:13 glotze kernel: BUG: unable to handle kernel NULL pointer dereference at virtual address 0040 Dec 4 19:50:13 glotze kernel: printing eip: Dec 4 19:50:13 glotze kernel: c017254a Dec 4 19:50:13 glotze kernel: *pde = 00

[patch] speed up single bio_vec allocation

2006-12-04 Thread Chen, Kenneth W
On 64-bit arch like x86_64, struct bio is 104 byte. Since bio slab is created with SLAB_HWCACHE_ALIGN flag, there are usually spare memory available at the end of bio. I think we can utilize that memory for bio_vec allocation. The purpose is not so much on saving memory consumption for bio_vec,

Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated

2006-12-04 Thread Andrew Morton
On Mon, 4 Dec 2006 14:07:47 + [EMAIL PROTECTED] (Mel Gorman) wrote: > o copy_strings() and variants are no longer setting the flag as the pages > are not obviously movable when I took a much closer look. > > o The arch function alloc_zeroed_user_highpage() is now called > __alloc_zeroed_u

Re: [patch] remove redundant iov segment check

2006-12-04 Thread Andrew Morton
On Mon, 4 Dec 2006 08:26:36 -0800 "Chen, Kenneth W" <[EMAIL PROTECTED]> wrote: > So it's not possible to call down to generic_file_aio_read/write with invalid > iov segment. Patch proposed to delete these redundant code. erp, please don't touch that code. The writev deadlock fixes which went in

[PATCH 0/4] Add MMC Password Protection (lock/unlock) support V8

2006-12-04 Thread Anderson Briglia
Hi all, New in this version: - mmc_sysfs.c: "change" and "assign" code merged to avoid code duplication. - OMAP specific patch not include on this series. - mmc_lock_unlock function: now, the host is claimed before mmc_lock_unlock is called. - Version according the latest mainline git repository

Re: PMTMR running too fast

2006-12-04 Thread Ian Campbell
On Mon, 2006-12-04 at 11:19 -0800, john stultz wrote: > On Sun, 2006-12-03 at 13:50 +, Ian Campbell wrote: > > In older kernels arch/i386/kernel/timers/timer_pm.c:verify_pmtmr_rate > > contained a check for sensible PMTMR rate and disabled that clocksource > > if it was found to be out of spec[

Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated

2006-12-04 Thread Christoph Lameter
On Mon, 4 Dec 2006, Andrew Morton wrote: > My concern is that __GFP_MOVABLE is useful for fragmentation-avoidance, but > useless for memory hot-unplug. So that if/when hot-unplug comes along > we'll add more gunk which is a somewhat-superset of the GFP_MOVABLE > infrastructure, hence we didn't ne

Re: [PATCH] SLAB : use a multiply instead of a divide in obj_to_index()

2006-12-04 Thread Andrew Morton
On Mon, 4 Dec 2006 19:18:29 +0100 Eric Dumazet <[EMAIL PROTECTED]> wrote: > On Monday 04 December 2006 17:55, Christoph Lameter wrote: > > Could you generalize the reciprocal thingy so that the division > > can be used from other parts of the kernel as well? It would be useful to > > separately ge

Re: [PATCH] SLAB : use a multiply instead of a divide in obj_to_index()

2006-12-04 Thread Christoph Lameter
This is similar stuff to asm-generic/div64.h right? The divide overhead depends on the platform? Maybe it would better to place it in asm-generic/div.h and then have platform specific functions? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

[PATCH] make sata_promise PATA ports work

2006-12-04 Thread Erik Andersen
This patch vs 2.6.19, based on the not-actually-working-for-me code lurking in libata-dev.git#promise-sata-pata, makes the PATA ports on my promise sata card actually work. Since the plan as checked into git, is to drive the PATA ports as if they were SATA, we have to teach sata_scr_read() to lie

RE: [patch] remove redundant iov segment check

2006-12-04 Thread Chen, Kenneth W
Zach Brown wrote on Monday, December 04, 2006 11:19 AM > On Dec 4, 2006, at 8:26 AM, Chen, Kenneth W wrote: > > > The access_ok() and negative length check on each iov segment in > > function > > generic_file_aio_read/write are redundant. They are all already > > checked > > before calling do

Re: [PATCH 32/36] driver core: Introduce device_move(): move a device to a new parent.

2006-12-04 Thread Greg KH
On Sun, Dec 03, 2006 at 05:26:03PM +0100, Marcel Holtmann wrote: > Hi Greg, > > > Provide a function device_move() to move a device to a new parent device. > > Add > > auxilliary functions kobject_move() and sysfs_move_dir(). > > kobject_move() generates a new uevent of type KOBJ_MOVE, containing

Re: [patch] remove redundant iov segment check

2006-12-04 Thread Zach Brown
> Maybe we should create another internal generic_file_aio_read/write > for in-core function? fs/read_write.c and fs/aio.c are not module-able > and the check is already there. For external module, we can do the > check and then calls down to the internal one. Maybe. I'd rather see fewer moving

RE: [patch] remove redundant iov segment check

2006-12-04 Thread Chen, Kenneth W
Andrew Morton wrote on Monday, December 04, 2006 11:36 AM > On Mon, 4 Dec 2006 08:26:36 -0800 > "Chen, Kenneth W" <[EMAIL PROTECTED]> wrote: > > > So it's not possible to call down to generic_file_aio_read/write with > > invalid > > iov segment. Patch proposed to delete these redundant code. >

Re: [RFC][PATCH] Pseudo-random number generator

2006-12-04 Thread Valdis . Kletnieks
On Fri, 01 Dec 2006 14:19:15 +0100, Jan Glauber said: > New s390 machines have hardware support for the generation of pseudo-random > numbers. This patch implements a simple char driver that exports this numbers > to user-space. Other possible implementations would have been: > + for (i = 0; i

[PATCH -stable] IB/ucm: Fix deadlock in cleanup

2006-12-04 Thread Michael S. Tsirkin
ib_ucm_cleanup_events() holds file_mutex while calling ib_destroy_cm_id(). This can deadlock since ib_destroy_cm_id() flushes event handlers, and ib_ucm_event_handler() needs file_mutex, too. Therefore, drop the file_mutex during the call to ib_destroy_cm_id(). Signed-off-by: Michael S. Tsirkin <

2.6.19 new perfmon code base + libpfm + pfmon

2006-12-04 Thread Stephane Eranian
Hello, I have released another version of the perfmon new code base packages. There is no major updates in this version compared to 061127. This is a convenience release so that people can use plain 2.6.19. The perfmon2 kernel changes are: - fix UP exit bug in system-wide mode where the

Re: [PATCH] prune_icache_sb

2006-12-04 Thread Russell Cattelan
Wendy Cheng wrote: Andrew Morton wrote: On Thu, 30 Nov 2006 11:05:32 -0500 Wendy Cheng <[EMAIL PROTECTED]> wrote: The idea is, instead of unconditionally dropping every buffer associated with the particular mount point (that defeats the purpose of page caching), base kernel exports the

hda-intel broken under 2.6.19

2006-12-04 Thread David Ronis
I've just upgraded a i686 dual box from 2.6.18.3 to 2.6.19 on a . (I had been running ALSA 1.0.13.rc3 and also upgraded to the release for for library and utility programs). The hda-intel driver had problems with initializing the mic (e.g., using skype for linux), but played sound properly. Sinc

[PATCH] x86_64/i386 - Kernel-mode faults pollute current->thead

2006-12-04 Thread Jeff Dike
Kernel-mode traps on x86_64 can pollute the trap information for a previous userspace trap for which the signal has not yet been delivered to the process. do_trap and do_general_protection set task->thread.error_code and .trapno for kernel traps. If a kernel-mode trap arrives between the arrival

[PATCH] KVM: mmu: honor global bit on huge pages

2006-12-04 Thread Avi Kivity
The kvm mmu attempts to cache global translations, however it misses on global huge page translation (which is what most global pages are). By caching global huge page translations, boot time of fc5 i386 on i386 is reduced from ~35 seconds to ~24 seconds. Signed-off-by: Avi Kivity <[EMAIL PROTECT

Re: [PATCH] KVM: mmu: honor global bit on huge pages

2006-12-04 Thread Renato S. Yamane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Em 04-12-2006 12:57, Avi Kivity escreveu: > The kvm mmu attempts to cache global translations, however it misses on > global huge page translation (which is what most global pages are). > > By caching global huge page translations, boot time of fc5 i3

Re: [PATCH] KVM: mmu: honor global bit on huge pages

2006-12-04 Thread Avi Kivity
Renato S. Yamane wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Em 04-12-2006 12:57, Avi Kivity escreveu: The kvm mmu attempts to cache global translations, however it misses on global huge page translation (which is what most global pages are). By caching global huge page translation

Re: [PATCH] KVM: mmu: honor global bit on huge pages

2006-12-04 Thread Avi Kivity
Avi Kivity wrote: Whats wrong? :-( This patch is for kvm, which lives in the -mm kernel. Apply the latest -mm patch first. Oh, and visit http://kvm.sourceforge.net first :) -- error compiling committee.c: too many arguments to function - To unsubscribe from this list: send the line

Re: race in sysfs between sysfs_remove_file() and read()/write() #2

2006-12-04 Thread Alan Stern
On Mon, 4 Dec 2006, Maneesh Soni wrote: > hmm, I guess Greg has to say the final word. The question is either to fail > the IO (-ENODEV) or fail the file removal (-EBUSY). If we are not going to > fail the removal then your patch is the way to go. > > Greg? Oliver is right that we cannot allow d

Re: race in sysfs between sysfs_remove_file() and read()/write() #2

2006-12-04 Thread Oliver Neukum
Am Montag, 4. Dezember 2006 17:06 schrieb Alan Stern: > On Mon, 4 Dec 2006, Maneesh Soni wrote: > > > hmm, I guess Greg has to say the final word. The question is either to fail > > the IO (-ENODEV) or fail the file removal (-EBUSY). If we are not going to > > fail the removal then your patch is t

Re: race in sysfs between sysfs_remove_file() and read()/write() #2

2006-12-04 Thread Alan Stern
On Mon, 4 Dec 2006, Oliver Neukum wrote: > > Also, Oliver, it looks like the latest version of your patch makes an > > unnecessary change to sysfs_remove_file(). > > Code like: > > int d(int a, int b) > { > return a + b; > } > > int c(int a, int b) > { > return d(a, b); > } > > is

Re: race in sysfs between sysfs_remove_file() and read()/write() #2

2006-12-04 Thread Oliver Neukum
Am Montag, 4. Dezember 2006 17:57 schrieb Alan Stern: > I was referring to sysfs_remove_file(), not sysfs_open_file() -- I agree > that getting rid of the check_perm() routine is good. But this isn't: > > > void sysfs_remove_file(struct kobject * kobj, const struct attribute * > > attr) > >

Re: race in sysfs between sysfs_remove_file() and read()/write() #2

2006-12-04 Thread Greg KH
On Mon, Dec 04, 2006 at 06:34:06PM +0530, Maneesh Soni wrote: > On Mon, Dec 04, 2006 at 07:38:00AM +0100, Oliver Neukum wrote: > > Am Montag, 4. Dezember 2006 05:43 schrieb Maneesh Soni: > > > On Fri, Dec 01, 2006 at 11:43:06PM +0100, Oliver Neukum wrote: > > > > Hi, > > > > > > > > Alan Stern has

[PATCH 4/4] Add MMC Password Protection (lock/unlock) support V8: mmc_sysfs.diff

2006-12-04 Thread Anderson Briglia
Implement MMC password force erase, remove password, change password, unlock card and assign password operations. It uses the sysfs mechanism to send commands to the MMC subsystem. Signed-off-by: Carlos Eduardo Aguiar indt.org.br> Signed-off-by: Anderson Lizardo indt.org.br> Signed-off-by:

Re: PMTMR running too fast

2006-12-04 Thread john stultz
On Mon, 2006-12-04 at 19:40 +, Ian Campbell wrote: > On Mon, 2006-12-04 at 11:19 -0800, john stultz wrote: > > On Sun, 2006-12-03 at 13:50 +, Ian Campbell wrote: > > > In older kernels arch/i386/kernel/timers/timer_pm.c:verify_pmtmr_rate > > > contained a check for sensible PMTMR rate and d

Re: Mounting NFS root FS

2006-12-04 Thread Jan Engelhardt
>> 2) NFS provides persistent storage. > >To me this sounds like a chicken and an egg problem. It >both depends and provides this at the same time :/. But >hey, if it's supposed to work then OK. Way 1: mount -nt tmpfs none /var/lib/nfs; mount -nt nfs fserve:/tftpboot/linux /mnt; mount -n --mov

Re: [patch] speed up single bio_vec allocation

2006-12-04 Thread Jens Axboe
On Mon, Dec 04 2006, Chen, Kenneth W wrote: > On 64-bit arch like x86_64, struct bio is 104 byte. Since bio slab is > created with SLAB_HWCACHE_ALIGN flag, there are usually spare memory > available at the end of bio. I think we can utilize that memory for > bio_vec allocation. The purpose is no

[2.6 patch] USB_RTL8150 must select MII

2006-12-04 Thread Adrian Bunk
USB_RTL8150 must select MII to avoid link errors. Stolen from a patch by Randy Dunlap. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- This patch was already sent on: - 4 Nov 2006 --- linux-2619-rc3-pv.orig/drivers/usb/net/Kconfig +++ linux-2619-rc3-pv/drivers/usb/net/Kconfig @@ -84,6 +84,7

Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated

2006-12-04 Thread Christoph Lameter
On Mon, 4 Dec 2006, Andrew Morton wrote: > > The multi zone approach does not work with NUMA. NUMA only supports a > > single zone for memory policy control etc. > > Wot? memory policies are a per-vma thing? They only apply to "policy_zone" of a node. policy_zone can only take a single type o

Re: [PATCH] make sata_promise PATA ports work

2006-12-04 Thread Alan
On Mon, 4 Dec 2006 12:47:37 -0700 Erik Andersen <[EMAIL PROTECTED]> wrote: > This patch vs 2.6.19, based on the not-actually-working-for-me > code lurking in libata-dev.git#promise-sata-pata, makes the PATA > ports on my promise sata card actually work. Since the plan as Nice, this is pretty muc

[PATCH 2/4] Add MMC Password Protection (lock/unlock) support V8: mmc_key_retention.diff

2006-12-04 Thread Anderson Briglia
Implement key retention operations. Signed-off-by: Carlos Eduardo Aguiar indt.org.br> Signed-off-by: Anderson Lizardo indt.org.br> Signed-off-by: Anderson Briglia indt.org.br> Index: linux-linus-2.6/drivers/mmc/Kconfig === ---

Linux 2.6.16.35-rc1

2006-12-04 Thread Adrian Bunk
Security fixes since 2.6.16.32: - CVE-2006-5751: bridge: fix possible overflow in get_fdb_entries Patch location: ftp://ftp.kernel.org/pub/linux/kernel/people/bunk/linux-2.6.16.y/testing/ git tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.16.y.git RSS feed of the git tree:

Re: Mounting NFS root FS

2006-12-04 Thread Janne Karhunen
On Monday 04 December 2006 20:21, Trond Myklebust wrote: > > > 2) NFS provides persistent storage. > > > > To me this sounds like a chicken and an egg problem. It > > both depends and provides this at the same time :/. But > > hey, if it's supposed to work then OK. > > ??? Locking depends on persi

[PATCH 1/4] Add MMC Password Protection (lock/unlock) support V8: mmc_ignore_locked.diff

2006-12-04 Thread Anderson Briglia
When a card is locked, only commands from the "basic" and "lock card" classes are accepted. To be able to use the other commands, the card must be unlocked first. This patch prevents the device drivers from probing the locked cards. Device probing must be triggered sometime later to make the car

[PATCH 3/4] Add MMC Password Protection (lock/unlock) support V8: mmc_lock_unlock.diff

2006-12-04 Thread Anderson Briglia
Implement card lock/unlock operation, using the MMC_LOCK_UNLOCK command. Signed-off-by: Carlos Eduardo Aguiar indt.org.br> Signed-off-by: Anderson Lizardo indt.org.br> Signed-off-by: Anderson Briglia indt.org.br> Index: linux-linus-2.6/drivers/mmc/mmc.h

Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated

2006-12-04 Thread Andrew Morton
On Mon, 4 Dec 2006 11:41:42 -0800 (PST) Christoph Lameter <[EMAIL PROTECTED]> wrote: > > That depends on how we do hot-unplug, if we do it. I continue to suspect > > that it'll be done via memory zones: effectively by resurrecting > > GFP_HIGHMEM. In which case there's little overlap with anti-f

Re: [patch] kill pointless ki_nbytes assignment in aio_setup_single_vector

2006-12-04 Thread Zach Brown
Chen, Kenneth W wrote: > io_submit_one assigns ki_left = ki_nbytes = iocb->aio_nbytes, then > calls down to aio_setup_iocb, then to aio_setup_single_vector. In there, > ki_nbytes is reassigned to the same value it got two call stack above it. > There is no need to do so. > > Signed-off-by: Ken Che

Re: Mounting NFS root FS

2006-12-04 Thread Janne Karhunen
On Monday 04 December 2006 22:03, Jan Engelhardt wrote: > >> 2) NFS provides persistent storage. > > > >To me this sounds like a chicken and an egg problem. It > >both depends and provides this at the same time :/. But > >hey, if it's supposed to work then OK. > > Way 1: > > mount -nt tmpfs none /

Re: [patch 3/5] [RFC] Add MMC Password Protection (lock/unlock) support V7: mmc_lock_unlock.diff

2006-12-04 Thread Pierre Ossman
Anderson Briglia wrote: > > Actually they represent the bits regarding the modes and it is used > when we > have to send the LOCK/UNLOCK mode on the command data block, according > to the MMC Spec. > If you take a look at mmc_lock_unlock function, we use those modes to > set the right bit > when co

Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated

2006-12-04 Thread Mel Gorman
On Mon, 4 Dec 2006, Andrew Morton wrote: On Mon, 4 Dec 2006 14:07:47 + [EMAIL PROTECTED] (Mel Gorman) wrote: o copy_strings() and variants are no longer setting the flag as the pages are not obviously movable when I took a much closer look. o The arch function alloc_zeroed_user_highpage

ata_piix multithreaded device probes breaks detection of SCSI device

2006-12-04 Thread Thomas Meyer
head: d916faace3efc0bf19fe9a615a1ab8fa1a24cd93 Here a sequential probe, that boots fine: " [cut] ata_piix :00:1f.1: version 2.00ac6 ACPI: PCI Interrupt :00:1f.1[A] -> GSI 18 (level, low) -> IRQ 18 PCI: Setting latency timer of device :00:1f.1 to 64 ata1: PATA max UDMA/133 cmd 0x1F0 ct

New mailing list for Linux kernel packagers

2006-12-04 Thread Greg KH
Hi, I'd like to announce a new mailing list that has been just set up. It is oriented toward anyone who is responsible for, or involved with, the packing up of the Linux kernel for a distro or other group of users. The list is located at [EMAIL PROTECTED], and instructions on how to subscribe to

Re: [patch] speed up single bio_vec allocation

2006-12-04 Thread Jens Axboe
On Mon, Dec 04 2006, Chen, Kenneth W wrote: > > [...] > > > > Another idea would be to kill SLAB_HWCACHE_ALIGN (it's pretty pointless, > > I bet), and always alloc sizeof(*bio) + sizeof(*bvl) in one go when a > > bio is allocated. It doesn't add a lot of overhead even for the case > > where we do

Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated

2006-12-04 Thread Peter Zijlstra
On Mon, 2006-12-04 at 11:30 -0800, Andrew Morton wrote: > I'd also like to pin down the situation with lumpy-reclaim versus > anti-fragmentation. No offence, but I would of course prefer to avoid > merging the anti-frag patches simply based on their stupendous size. It > seems to me that lumpy-r

RE: [patch] speed up single bio_vec allocation

2006-12-04 Thread Chen, Kenneth W
Jens Axboe wrote on Monday, December 04, 2006 12:07 PM > On Mon, Dec 04 2006, Chen, Kenneth W wrote: > > On 64-bit arch like x86_64, struct bio is 104 byte. Since bio slab is > > created with SLAB_HWCACHE_ALIGN flag, there are usually spare memory > > available at the end of bio. I think we can u

Re: Mounting NFS root FS

2006-12-04 Thread Trond Myklebust
On Mon, 2006-12-04 at 21:03 +0100, Jan Engelhardt wrote: > >> 2) NFS provides persistent storage. > > > >To me this sounds like a chicken and an egg problem. It > >both depends and provides this at the same time :/. But > >hey, if it's supposed to work then OK. > > Way 1: > > mount -nt tmpfs no

Re: [PATCH] pata_ali: small fixes

2006-12-04 Thread Jeff Garzik
Alan wrote: Switch to pci_get_bus_and_slot because some x86 systems seem to be handing us a device with dev->bus = NULL. Also don't apply the isa fixup to revision C6 and later of the chip. Really we need to work out wtf is handing us pdev->bus = NULL, but firstly and more importantly we need

Re: [PATCH] pata_via: VIA 8251 bridged systems are now out and about

2006-12-04 Thread Jeff Garzik
Alan wrote: Signed-off-by: Alan Cox <[EMAIL PROTECTED]> applied - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org

Re: ata_piix multithreaded device probes breaks detection of SCSI device

2006-12-04 Thread Jeff Garzik
Thomas Meyer wrote: head: d916faace3efc0bf19fe9a615a1ab8fa1a24cd93 Here a sequential probe, that boots fine: Known problem, unfortunately, for a -great- many drivers. Please turn off this option until the authors fix it. Jeff - To unsubscribe from this list: send the line "unsubsc

Re: 2.6.16.32 stuck in generic_file_aio_write()

2006-12-04 Thread Igmar Palsenberg
> It's rather large, but for those who want to look at it : > http://www.jdi-ict.nl/plain/serial-28112006.txt The same problem, this time with 2.6.19. I've done a show tasks, a show locks, a show regs, and after that, a sync + reboot :) Log is at http://www.jdi-ict.nl/plain/serial-04122006.txt

Re: [PATCH 32/36] driver core: Introduce device_move(): move a device to a new parent.

2006-12-04 Thread Marcel Holtmann
Hi Greg, > > > Provide a function device_move() to move a device to a new parent device. > > > Add > > > auxilliary functions kobject_move() and sysfs_move_dir(). > > > kobject_move() generates a new uevent of type KOBJ_MOVE, containing the > > > previous path (DEVPATH_OLD) in addition to the usu

Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated

2006-12-04 Thread Andrew Morton
On Mon, 4 Dec 2006 12:17:26 -0800 (PST) Christoph Lameter <[EMAIL PROTECTED]> wrote: > > I suspect you'll have to live with that. I've yet to see a vaguely sane > > proposal to otherwise prevent unreclaimable, unmoveable kernel allocations > > from landing in a hot-unpluggable physical memory reg

RE: la la la la ... swappiness

2006-12-04 Thread Aucoin
> From: Jeffrey Hundstad [mailto:[EMAIL PROTECTED] > POSIX_FADV_NOREUSE flags. It seems these would cause the tar and patch WI may be naïve as well, but that sounds interesting. Unless someone knows of an obvious reason this won't work we can make a one-off tar command and give it a whirl. - To

Why SCSI module needed for PCI-IDE ATA only disks ?

2006-12-04 Thread Bernard Pidoux
I am asking why need to compile the following modules while I do not have any SCSI device ? Modules Loaded rose netrom mkiss ax25 crc16 mach64 drm nfsd exportfs lockd nfs_acl sunrpc ipv6 snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq ne2k_pci 8390 snd_pcm_oss snd_mixer_oss snd_ens1371 gamep

Re: Mounting NFS root FS

2006-12-04 Thread Trond Myklebust
On Mon, 2006-12-04 at 22:05 +0200, Janne Karhunen wrote: > On Monday 04 December 2006 20:21, Trond Myklebust wrote: > > > > > 2) NFS provides persistent storage. > > > > > > To me this sounds like a chicken and an egg problem. It > > > both depends and provides this at the same time :/. But > > >

RE: la la la la ... swappiness

2006-12-04 Thread Aucoin
> From: Tim Schmielau [mailto:[EMAIL PROTECTED] > I believe your OOM problem is not connected to these observations. There I don't know what to tell you except oom fires only when the update runs. I know it's a pitiful datapoint so I'll work on getting more data. - To unsubscribe from this list:

Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated

2006-12-04 Thread Christoph Lameter
On Mon, 4 Dec 2006, Andrew Morton wrote: > What happens when we need to run reclaim against just a section of a zone? > Lumpy-reclaim could be used here; perhaps that's Mel's approach too? Why would we run reclaim against a section of a zone? > We'd need new infrastructure to perform the > sect

RE: la la la la ... swappiness

2006-12-04 Thread Aucoin
> From: Horst H. von Brand [mailto:[EMAIL PROTECTED] > How do you /know/ it won't just be recycled in the production case? In the production case is when oom fires and kills things. I can only assume memory is not being freed fast enough otherwise oom wouldn't get so upset. > That is your ultimat

Re: ata_piix multithreaded device probes breaks detection of SCSI device

2006-12-04 Thread Alan
On Mon, 04 Dec 2006 15:48:04 -0500 Jeff Garzik <[EMAIL PROTECTED]> wrote: > Thomas Meyer wrote: > > head: d916faace3efc0bf19fe9a615a1ab8fa1a24cd93 > > > > Here a sequential probe, that boots fine: > > Known problem, unfortunately, for a -great- many drivers. > > Please turn off this option unti

Re: [PATCH] SLAB : use a multiply instead of a divide in obj_to_index()

2006-12-04 Thread Eric Dumazet
Thank you Andrew for your comments, here is a new version of the patch that should take them into account. Maybe it should be split into two different patches ? One introducing include/linux/reciprocal_div.h and lib/reciprocal_div.c, one using them in slab ? [PATCH] SLAB : use a multiply in

Re: la la la la ... swappiness

2006-12-04 Thread Andrew Morton
On Mon, 4 Dec 2006 15:25:47 -0600 "Aucoin" <[EMAIL PROTECTED]> wrote: > > From: Jeffrey Hundstad [mailto:[EMAIL PROTECTED] > > POSIX_FADV_NOREUSE flags. It seems these would cause the tar and patch > > WI may be na__ve as well, but that sounds interesting. Unless someone knows > of an obvious re

Re: [PATCH] 2.6.18-rt7: fix more issues with 32-bit cycles_t in latency_trace.c (take 3)

2006-12-04 Thread Roman Zippel
Hi, On Monday 04 December 2006 16:39, Ingo Molnar wrote: > there's *always* a way to do such things more cleanly - such as the > patch below. Could you try to fix it up for 32-bit cycles_t platforms? I > bet the hackery will be limited to now() and maybe the conversion > routines, instead of spre

Re: [PATCH] SLAB : use a multiply instead of a divide in obj_to_index()

2006-12-04 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Mon, 04 Dec 2006 22:34:29 +0100 > On a 200 MHz sparcv9 machine, the division takes 64 cycles instead of 1 cycle > for a multiply. For UltraSPARC I and II (which is what this 200mhz guy probably is), it's 4 cycle latency for a multiply (32-bit or 64-bit

Re: Why SCSI module needed for PCI-IDE ATA only disks ?

2006-12-04 Thread Phillip Susi
Bernard Pidoux wrote: I am asking why need to compile the following modules while I do not have any SCSI device ? Because your hardware is driven by a libata based driver. This means it is a scsi bus driver and thus, requires mod_scsi and the scsi disk module to access disks on the bus. -

Re: Incorrect order of last two arguments of ptrace for requests PPC_PTRACE_GETREGS, SETREGS, GETFPREGS, SETFPREGS

2006-12-04 Thread Anton Blanchard
Hi, > > In ptrace, when request is PPC_PTRACE_GETREGS, SETREGS, GETFPREGS and > > SETFPREGS, order of the last two arguments is not correct. > > > > General format of ptrace is ptrace (request, pid, addr, data). For the > > above mentioned request ids in ppc64, if we use ptrace like > > > >

Re: [PATCH] 2.6.18-rt7: fix more issues with 32-bit cycles_t in latency_trace.c (take 3)

2006-12-04 Thread Ingo Molnar
* Roman Zippel <[EMAIL PROTECTED]> wrote: > While I'm not against this patch, but on m68k I prefer a 32bit cycle > type (however it's called), so it doesn't solve the original problem. i havent changed the cycles_t type - it's still 32-bit. I agree with you that we dont want to bloat 32-bit ar

PROBLEM: 2.6.19: OOPS upon boot (not always)

2006-12-04 Thread Philippe Gramoullé
Hello, [1.] One line summary of the problem: Kernel oops upon boot, but not always. When it boots ok, then PC's working fine. [2.] Full description of the problem/report: Following the release of the 2.6.19 kernel, i installed it and after few reboots , i caught this oops: Picture's here : ht

[PATCH -rt] drop one spin_lock_irqsave()

2006-12-04 Thread Daniel Walker
This gave me some really odd compile errors.. Theres a static inline for this function right above this define so I just dropped the define. Signed-Off-By: Daniel Walker <[EMAIL PROTECTED]> --- include/linux/spinlock.h |1 - 1 files changed, 1 deletion(-) Index: linux-2.6.19/include/linux/

Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated

2006-12-04 Thread Andrew Morton
On Mon, 4 Dec 2006 13:43:44 -0800 (PST) Christoph Lameter <[EMAIL PROTECTED]> wrote: > On Mon, 4 Dec 2006, Andrew Morton wrote: > > > What happens when we need to run reclaim against just a section of a zone? > > Lumpy-reclaim could be used here; perhaps that's Mel's approach too? > > Why would

Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated

2006-12-04 Thread Andrew Morton
On Mon, 4 Dec 2006 20:34:29 + (GMT) Mel Gorman <[EMAIL PROTECTED]> wrote: > > IOW: big-picture where-do-we-go-from-here stuff. > > > > Start with lumpy reclaim, I had lumpy-reclaim in my todo-queue but it seems to have gone away. I think I need a lumpy-reclaim resend, please. > then I'd li

[PATCH] Fix linux banner utsname information

2006-12-04 Thread Herbert Poetzl
utsname information is shown in the linux banner, which also is used for /proc/version (which can have different utsname values inside a uts namespaces). this patch makes the varying data arguments and changes the string to a format string, using those arguments. best, Herbert Signed-off-by: Her

Re: [PATCH] SLAB : use a multiply instead of a divide in obj_to_index()

2006-12-04 Thread Eric Dumazet
David Miller a écrit : From: Eric Dumazet <[EMAIL PROTECTED]> Date: Mon, 04 Dec 2006 22:34:29 +0100 On a 200 MHz sparcv9 machine, the division takes 64 cycles instead of 1 cycle for a multiply. For UltraSPARC I and II (which is what this 200mhz guy probably is), it's 4 cycle latency for a mul

Re: [PATCH] fully support linker generated .eh_frame_hdr section

2006-12-04 Thread Randy Dunlap
On Mon, 04 Dec 2006 16:23:27 + Jan Beulich wrote: > Now that binutils' ld is able to properly populate .eh_frame_hdr in the > Linux kernel case, here's a patch to add some functionality to the Dwarf2 > unwinder to actually be able to make use of this (applies on firstfloor > tree with the prev

Re: /sys/bus/pci/drivers//new_id

2006-12-04 Thread Greg KH
On Wed, Nov 29, 2006 at 09:18:04PM +, Russell King wrote: > Unfortunately, the .../new_id feature does not work with the 8250_pci > driver. > > The reason for this comes down to the way .../new_id is implemented. > When PCI tries to match a driver to a device, it checks the modules > static de

Re: [PATCH 32/36] driver core: Introduce device_move(): move a device to a new parent.

2006-12-04 Thread Greg KH
On Mon, Dec 04, 2006 at 10:15:03PM +0100, Marcel Holtmann wrote: > Hi Greg, > > > > > Provide a function device_move() to move a device to a new parent > > > > device. Add > > > > auxilliary functions kobject_move() and sysfs_move_dir(). > > > > kobject_move() generates a new uevent of type KOBJ_

Re: [2.6 patch] USB_RTL8150 must select MII

2006-12-04 Thread Randy Dunlap
On Mon, 4 Dec 2006 21:02:06 +0100 Adrian Bunk wrote: > USB_RTL8150 must select MII to avoid link errors. > > Stolen from a patch by Randy Dunlap. > > Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Thanks, Adrian. David B. may prefer a patch similar to the one that was merged for USB_NET_MCS783

Re: [PATCH] make sata_promise PATA ports work

2006-12-04 Thread Jeff Garzik
Alan wrote: On Mon, 4 Dec 2006 12:47:37 -0700 Erik Andersen <[EMAIL PROTECTED]> wrote: This patch vs 2.6.19, based on the not-actually-working-for-me code lurking in libata-dev.git#promise-sata-pata, makes the PATA ports on my promise sata card actually work. Since the plan as Nice, this is

scst support for kernels above 2.6.15

2006-12-04 Thread Jeff V. Merkey
I have noticed that scsi_do_req has apparently been obsoleted in 2.6.18 and above. Is scst and target support for FC-AL going to remain supported and/or merged at some point? If so, what is planned for scst support for later kernels? Jeff - To unsubscribe from this list: send the line "uns

Re: Why SCSI module needed for PCI-IDE ATA only disks ?

2006-12-04 Thread Jeff Garzik
Bernard Pidoux wrote: I am asking why need to compile the following modules while I do not have any SCSI device ? libata uses SCSI to provide a lot of infrastructure that it would otherwise have to recreate. Also, using SCSI meant that it automatically worked in existing installers.

Re: [PATCH] Add __GFP_MOVABLE for callers to flag allocations that may be migrated

2006-12-04 Thread Mel Gorman
On (04/12/06 14:34), Andrew Morton didst pronounce: On Mon, 4 Dec 2006 20:34:29 + (GMT) Mel Gorman <[EMAIL PROTECTED]> wrote: > > IOW: big-picture where-do-we-go-from-here stuff. > > > > Start with lumpy reclaim, I had lumpy-reclaim in my todo-queue but it seems to have gone away. I thin

Re: [PATCH 0/4] lock stat for 2.6.19-rt1

2006-12-04 Thread hui
On Mon, Dec 04, 2006 at 09:08:56AM -0800, Bill Huey wrote: > On Mon, Dec 04, 2006 at 01:21:29PM +0100, bert hubert wrote: > > How tightly is your work bound to -rt? Iow, any chance of separating the > > two? Or should we even want to? > > There's other uses for it as well. Think about RCU algorith

Re: why can't I remove a kernel module (or: what uses a given module)?

2006-12-04 Thread Michal Jaegermann
On Mon, Dec 04, 2006 at 11:10:01AM +0100, Tobias Oed wrote: > Tomasz Chmielewski wrote: > > > Yes, something's using that drive, be it a program, a module (unlikely), > > or something that is compiled directly in the kernel (for example, > > md/raid1). > > Since you mention md, dm comes to mind.

2.6.19 git compile error - "current_is_keventd" [drivers/net/phy/libphy.ko] undefined

2006-12-04 Thread art
to: linux-kernel@vger.kernel.org cc: [EMAIL PROTECTED] 2006/12/04/18:00 CST Building modules, stage 2. Kernel: arch/x86_64/boot/bzImage is ready (#2) MODPOST 1256 modules WARNING: "current_is_keventd" [drivers/net/phy/libphy.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules

Re: v2.6.19-rt1, yum/rpm

2006-12-04 Thread Karsten Wiese
Am Donnerstag, 30. November 2006 09:33 schrieb Ingo Molnar: > i have released the 2.6.19-rt1 tree, which can be downloaded from the Hi Ingo, here comes a freerunning trace explaining the weirdness I see here. I tried max_latency tracing first, didn't see anything usefull, went on with tracing fre

<    1   2   3   4   5   >