Re: [patch 00/12] Syslets, Threadlets, generic AIO support, v5

2007-03-13 Thread Milton Miller
Anton Blanchard wrote: Hi Ingo, this is the v5 release of the syslet/threadlet subsystem: http://redhat.com/~mingo/syslet-patches/ Nice! I too went and downloaded patches-v5 for review. First off, one problem I noticed in sys_async_wait: + ah-events_left = min_wait_events -

Re: Make sure we populate the initroot filesystem late enough

2007-03-13 Thread Benjamin Herrenschmidt
Hmm. The crash came back after I booted into Mac OS X and back. It was however a different crash, I believe it was coming from the USB modules (as it would keep going when it happened, and get another crash, which tended to scroll away too fast for me to capture) but I believe it was still

Re: [RFC][PATCH 3/7] Data structures changes for RSS accounting

2007-03-13 Thread Pavel Emelianov
Dave Hansen wrote: On Mon, 2007-03-12 at 20:19 +0300, Pavel Emelianov wrote: Dave Hansen wrote: On Mon, 2007-03-12 at 19:16 +0300, Kirill Korotaev wrote: now VE2 maps the same page. You can't determine whether this page is mapped to this container or another one w/o page-container pointer.

[QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Christoph Lameter
V1-V2 - Add sparch64 patch - Single i386 and x86_64 patch - Update attribution - Update justification - Update approvals - Earlier discussion of V1 was at http://marc.info/?l=linux-kernelm=117357922219342w=2 This patchset introduces an arch independent framework to handle lists of recently used

[QUICKLIST 1/4] Generic quicklist implementation

2007-03-13 Thread Christoph Lameter
Abstract quicklist from the OA64 implementation Extract the quicklist implementation for IA64, clean it up and generalize it to allow multiple quicklists and support for constructors and destructors.. Signed-off-by: Christoph Lameter [EMAIL PROTECTED] --- arch/ia64/Kconfig |4 ++

[QUICKLIST 4/4] Quicklist support for sparc64

2007-03-13 Thread Christoph Lameter
From: David Miller [EMAIL PROTECTED] [QUICKLIST]: Add sparc64 quicklist support. I ported this to sparc64 as per the patch below, tested on UP SunBlade1500 and 24 cpu Niagara T1000. Signed-off-by: David S. Miller [EMAIL PROTECTED] --- arch/sparc64/Kconfig |4

[QUICKLIST 2/4] Quicklist support for i386

2007-03-13 Thread Christoph Lameter
i386: Convert to quicklists Implement the i386 management of pgd and pmds using quicklists. The i386 management of page table pages currently uses page sized slabs. The page state is therefore mainly determined by the slab code. However, i386 also uses its own fields in the page struct to mark

[QUICKLIST 3/4] Quicklist support for x86_64

2007-03-13 Thread Christoph Lameter
Conver x86_64 to using quicklists This adds caching of pgds and puds, pmds, pte. That way we can avoid costly zeroing and initialization of special mappings in the pgd. A second quicklist is useful to separate out PGD handling. We can carry the initialized pgds over to the next process needing

Re: [RFC][PATCH 2/7] RSS controller core

2007-03-13 Thread Pavel Emelianov
Herbert Poetzl wrote: On Mon, Mar 12, 2007 at 12:02:01PM +0300, Pavel Emelianov wrote: Maybe you have some ideas how we can decide on this? We need to work out what the requirements are before we can settle on an implementation. Linux-VServer (and probably OpenVZ): - shared mappings of

Re: RSDL-mm 0.28

2007-03-13 Thread Nick Piggin
David Schwartz wrote: There's a substantial performance hit for not yield, so we probably want to investigate alternate semantics for it. It seems reasonable for apps to say let me not hog the CPU without completely expiring them. Imagine you're in the front of the line (aka queue) and you spend

Re: sys_write() racy for multi-threaded append?

2007-03-13 Thread Michael K. Edwards
On 3/12/07, Alan Cox [EMAIL PROTECTED] wrote: Writing to a file from multiple processes is not usually the problem. Writing to a common struct file from multiple threads is. Not normally because POSIX sensibly invented pread/pwrite. Forgot preadv/pwritev but they did the basics and end of

Re: sys_write() racy for multi-threaded append?

2007-03-13 Thread David Miller
From: Michael K. Edwards [EMAIL PROTECTED] Date: Mon, 12 Mar 2007 23:25:48 -0800 Quality means the devices you ship now keep working in the field, and the probable cost of later rework if the requirements change does not exceed the opportunity cost of over-engineering up front. Economy gets

LSM Stacking

2007-03-13 Thread JanuGerman
Hi All, Within the security folder in the kernel tree, the 2.6.20 linux kernel distribution is shipped with a file root_plug.c (written by Greg Kroah-Hartman), which is a classic introduction to Linux Security Modules (LSM). The folder also contains the folder of SELinux. My question is that

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Mike Galbraith
On Tue, 2007-03-13 at 16:53 +1100, Con Kolivas wrote: On Tuesday 13 March 2007 16:10, Mike Galbraith wrote: It's not offensive to me, it is a behavioral regression. The situation as we speak is that you can run cpu intensive tasks while watching eye-candy. With RSDL, you can't, you feel

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Andrew Morton
On Tue, 13 Mar 2007 00:13:25 -0700 (PDT) Christoph Lameter [EMAIL PROTECTED] wrote: Page table pages have the characteristics that they are typically zero or in a known state when they are freed. Well if they're zero then perhaps they should be released to the page allocator to satisfy the

Re: [RFC] hwbkpt: Hardware breakpoints (was Kwatch)

2007-03-13 Thread Roland McGrath
Well, I can add in the test for 0, but finding the set of always-on bits in DR6 will have to be done separately. Isn't it possible that different CPUs could have different bits? I don't know, but it seems unlikely. AFAIK all CPUs are presumed to have the same CPUID results, for example. At

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Nick Piggin
Andrew Morton wrote: On Tue, 13 Mar 2007 00:13:25 -0700 (PDT) Christoph Lameter [EMAIL PROTECTED] wrote: Page table pages have the characteristics that they are typically zero or in a known state when they are freed. Well if they're zero then perhaps they should be released to the page

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Ingo Molnar
* Linus Torvalds [EMAIL PROTECTED] wrote: It has been said that perfection is the enemy of good. The two interactive tasks receiving 40% cpu while two niced background jobs receive 60% may well be perfect, but it's damn sure not good. Well, the real problem is really server that

Re: 2.6.21rc suspend to ram regression on Lenovo X60

2007-03-13 Thread Eric W. Biederman
Dave Jones [EMAIL PROTECTED] writes: I spent considerable time over the last day or so bisecting to find out why an X60 stopped resuming somewhen between 2.6.20 and current -git. (Total lockup, black screen of death). The bisect log looked like this. git-bisect start # bad:

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Ingo Molnar
* Mike Galbraith [EMAIL PROTECTED] wrote: [...] The situation as we speak is that you can run cpu intensive tasks while watching eye-candy. With RSDL, you can't, you feel the non-interactive load instantly. [...] i have to agree with Mike that this is a material regression that cannot be

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Mike Galbraith
On Tue, 2007-03-13 at 09:18 +0100, Ingo Molnar wrote: ps. please be nice to each other - both of you are long-time scheduler contributors who did lots of cool stuff :-) It's no big deal, Con and I just seem to be oil and water. He'll have to be oil, because water is already take.

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Ingo Molnar
* Con Kolivas [EMAIL PROTECTED] wrote: It's not offensive to me, it is a behavioral regression. The situation as we speak is that you can run cpu intensive tasks while watching eye-candy. With RSDL, you can't, you feel the non-interactive load instantly. Doesn't the fact that

New thread RDSL, post-2.6.20 kernels and amanda (tar) miss-fires

2007-03-13 Thread Gene Heskett
Greetings; Someone suggested a fresh thread for this. I now have my scripts more or less under control, and I can report that kernel-2.6.20.1 with no other patches does not exhibit the undesirable behaviour where tar thinks its all new, even when told to do a level 2 on a directory tree that

[PATCH 1/2] avoid OPEN_MAX in SCM_MAX_FD

2007-03-13 Thread Roland McGrath
The OPEN_MAX constant is an arbitrary number with no useful relation to anything. Nothing should be using it. This patch changes SCM_MAX_FD to use NR_OPEN instead of OPEN_MAX. This increases the size of the struct scm_fp_list type fourfold, to make it big enough to contain as many file

[PATCH 2/2] Remove OPEN_MAX

2007-03-13 Thread Roland McGrath
The OPEN_MAX macro in limits.h should not be there. It claims to be the limit on file descriptors in a process, but its value is wrong for that. There is no constant value, but a variable resource limit (RLIMIT_NOFILE). Nothing in the kernel uses OPEN_MAX except things that are wrong to do so.

[PATCH] Remove CHILD_MAX

2007-03-13 Thread Roland McGrath
The CHILD_MAX macro in limits.h should not be there. It claims to be the limit on processes a user can own, but its value is wrong for that. There is no constant value, but a variable resource limit (RLIMIT_NPROC). Nothing in the kernel uses CHILD_MAX. The proper thing to do according to POSIX

Re: [PATCH] drivers: PMC MSP71xx LED driver

2007-03-13 Thread Florian Fainelli
Hi Marc, Your patch does not seem to use the Linux LED API (include/linux/leds.h), which is sometimes pretty unknown, but dramatically ease your work. Maybe it is a good idea converting it to this API if you find it relevant. Also consider the ongoing LED-GPIO API which is being written by ARM

Re: _proxy_pda still makes linking modules fail

2007-03-13 Thread Paul Mackerras
Rusty Russell writes: The ideal solution has always been to use __thread, but no architecture has yet managed it (I tried for i386, and it quickly caused unbearable pain). On x86-64 that uses %fs on x86-64, not %gs as the kernel does, but I might try that if I feel particularly masochistic

Re: Removal of multipath cached (was Re: [PATCH] [REVISED] net/ipv4/multipath_wrandom.c: check kmalloc() return value.)

2007-03-13 Thread Jarek Poplawski
On Mon, Mar 12, 2007 at 10:22:36PM -0800, Andrew Morton wrote: On Mon, 12 Mar 2007 13:53:11 -0700 (PDT) David Miller [EMAIL PROTECTED] wrote: ... And there is absolutely no negotiations about this, I've held back on this for nearly 2 years, and nothing has happened, this code is not

Re: [patch 3/8] per backing_dev dirty and writeback page accounting

2007-03-13 Thread Miklos Szeredi
IIUC, your problem is that there's another bdi that holds all the dirty pages, and this throttle loop never flushes pages from that other bdi and we sleep instead. It seems to me that the fundamental problem is that to clean the pages we need to flush both bdi's, not just the bdi we

Re: /sys/devices/system/cpu/cpuX/online are missing

2007-03-13 Thread Heiko Carstens
On Tue, Mar 13, 2007 at 01:39:25AM +0100, Andreas Schwab wrote: Giuliano Pochini [EMAIL PROTECTED] writes: I had a look at arch/powerpc/kernel/smp.c but I'm not familiar at all with those parts of the kernel. See arch/powerpc/kernel/sysfs.c:topology_init. I don't think there is

Re: [QUICKLIST 1/4] Generic quicklist implementation

2007-03-13 Thread Paul Mundt
On Tue, Mar 13, 2007 at 12:13:30AM -0700, Christoph Lameter wrote: --- linux-2.6.21-rc3-mm2.orig/mm/Kconfig 2007-03-12 22:49:21.0 -0700 +++ linux-2.6.21-rc3-mm2/mm/Kconfig 2007-03-13 00:09:50.0 -0700 @@ -220,3 +220,8 @@ config DEBUG_READAHEAD Say N for

Re: [RFC][PATCH 1/7] Resource counters

2007-03-13 Thread Eric W. Biederman
Herbert Poetzl [EMAIL PROTECTED] writes: On Sun, Mar 11, 2007 at 01:00:15PM -0600, Eric W. Biederman wrote: Herbert Poetzl [EMAIL PROTECTED] writes: Linux-VServer does the accounting with atomic counters, so that works quite fine, just do the checks at the beginning of whatever

Re: /sys/devices/system/cpu/cpuX/online are missing

2007-03-13 Thread Heiko Carstens
On Tue, Mar 13, 2007 at 10:03:50AM +0100, Heiko Carstens wrote: On Tue, Mar 13, 2007 at 01:39:25AM +0100, Andreas Schwab wrote: Giuliano Pochini [EMAIL PROTECTED] writes: I had a look at arch/powerpc/kernel/smp.c but I'm not familiar at all with those parts of the kernel. See

Re: [PATCH] kthread_should_stop_check_freeze (was: Re: [PATCH -mm 3/7] Freezer: Remove PF_NOFREEZE from rcutorture thread)

2007-03-13 Thread Christoph Hellwig
On Tue, Mar 13, 2007 at 08:44:11AM +0530, Srivatsa Vaddagiri wrote: On Mon, Mar 12, 2007 at 05:45:24PM -0500, Anton Blanchard wrote: Then please document it _clearly_ with the kthread code somewhere. Document as well in the kernel_thread() API, as I notice people still use kernel_thread()

Re: 2.6.20*: PATA DMA timeout, hangs (2)

2007-03-13 Thread Frank van Maarseveen
On Mon, Mar 12, 2007 at 09:40:25PM +0100, Bartlomiej Zolnierkiewicz wrote: Hi, On Monday 12 March 2007, Frank van Maarseveen wrote: On Mon, Mar 12, 2007 at 01:21:18PM +0100, Bartlomiej Zolnierkiewicz wrote: Hi, Could you check if this is the same problem as this one:

Re: 2.6.21rc suspend to ram regression on Lenovo X60

2007-03-13 Thread Rafael J. Wysocki
On Tuesday, 13 March 2007 05:08, Dave Jones wrote: I spent considerable time over the last day or so bisecting to find out why an X60 stopped resuming somewhen between 2.6.20 and current -git. (Total lockup, black screen of death). Do you have CONFIG_TICK_ONESHOT or CONFIG_NO_HZ set? If you

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Con Kolivas
On Tuesday 13 March 2007 19:18, Ingo Molnar wrote: * Mike Galbraith [EMAIL PROTECTED] wrote: [...] The situation as we speak is that you can run cpu intensive tasks while watching eye-candy. With RSDL, you can't, you feel the non-interactive load instantly. [...] i have to agree with

Re: [RFC][PATCH 1/7] Resource counters

2007-03-13 Thread Pavel Emelianov
Eric W. Biederman wrote: Herbert Poetzl [EMAIL PROTECTED] writes: On Sun, Mar 11, 2007 at 01:00:15PM -0600, Eric W. Biederman wrote: Herbert Poetzl [EMAIL PROTECTED] writes: Linux-VServer does the accounting with atomic counters, so that works quite fine, just do the checks at the

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Ingo Molnar
* Con Kolivas [EMAIL PROTECTED] wrote: Well I guess you must have missed where I asked him if he would be happy if I changed +5 metrics to do whatever he wanted and he refused to answer me. [...] I'd say lets keep nice levels out of this completely for now - while they should work _too_,

Re: [ck] Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Con Kolivas
On Tuesday 13 March 2007 20:21, Con Kolivas wrote: On Tuesday 13 March 2007 19:18, Ingo Molnar wrote: * Mike Galbraith [EMAIL PROTECTED] wrote: [...] The situation as we speak is that you can run cpu intensive tasks while watching eye-candy. With RSDL, you can't, you feel the

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Mike Galbraith
On Tue, 2007-03-13 at 09:18 +0100, Ingo Molnar wrote: Con, we want RSDL to /improve/ interactivity. Having new scheduler interactivity logic that behaves /worse/ in the presence of CPU hogs, which CPU hogs are even reniced to +5, than the current interactivity code, is i think a

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Ingo Molnar
* Mike Galbraith [EMAIL PROTECTED] wrote: I just retested with the encoders at nice 0, and the x/gforce combo is terrible. [...] ok. So nice levels had nothing to do with it - it's some other regression somewhere. How does the vanilla scheduler cope with the exactly same workload? I.e.

Re: /sys/devices/system/cpu/cpuX/online are missing

2007-03-13 Thread Russell King
On Tue, Mar 13, 2007 at 10:11:59AM +0100, Heiko Carstens wrote: On Tue, Mar 13, 2007 at 10:03:50AM +0100, Heiko Carstens wrote: On Tue, Mar 13, 2007 at 01:39:25AM +0100, Andreas Schwab wrote: Giuliano Pochini [EMAIL PROTECTED] writes: I had a look at arch/powerpc/kernel/smp.c but I'm

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Con Kolivas
On Tuesday 13 March 2007 20:29, Ingo Molnar wrote: * Con Kolivas [EMAIL PROTECTED] wrote: Well I guess you must have missed where I asked him if he would be happy if I changed +5 metrics to do whatever he wanted and he refused to answer me. [...] I'd say lets keep nice levels out of this

Re: [RFC][PATCH 4/7] RSS accounting hooks over the code

2007-03-13 Thread Eric W. Biederman
Dave Hansen [EMAIL PROTECTED] writes: On Mon, 2007-03-12 at 20:07 +0300, Kirill Korotaev wrote: On Mon, 2007-03-12 at 19:23 +0300, Kirill Korotaev wrote: For these you essentially need per-container page-_mapcount counter, otherwise you can't detect whether rss group still has the page in

Re: /sys/devices/system/cpu/cpuX/online are missing

2007-03-13 Thread Andreas Schwab
Heiko Carstens [EMAIL PROTECTED] writes: On Tue, Mar 13, 2007 at 01:39:25AM +0100, Andreas Schwab wrote: Giuliano Pochini [EMAIL PROTECTED] writes: I had a look at arch/powerpc/kernel/smp.c but I'm not familiar at all with those parts of the kernel. See

__HAVE_ARCH_PTEP_TEST_AND_CLEAR_{DIRTY,YOUNG} on i386

2007-03-13 Thread Jan Beulich
Isn't defining these on i386 of at most historical value. The only consumer is include/asm-generic/pgtable.h (ptep_clear_flush_{dirty,young}), and those are already suppressed by __HAVE_ARCH_PTEP_CLEAR_{DIRTY,YOUNG}_FLUSH being defined in include/asm-i386/pgtable.h. Or is there a particular need

Re: SMP performance degradation with sysbench

2007-03-13 Thread Andrea Arcangeli
On Tue, Mar 13, 2007 at 04:11:02PM +1100, Nick Piggin wrote: Hi Anton, Very cool. Yeah I had come to the conclusion that it wasn't a kernel issue, and basically was afraid to look into userspace ;) btw, regardless of what glibc is doing, still the cpu shouldn't go idle IMHO. Even if we're

Re: [PATCH] kthread_should_stop_check_freeze (was: Re: [PATCH -mm 3/7] Freezer: Remove PF_NOFREEZE from rcutorture thread)

2007-03-13 Thread Srivatsa Vaddagiri
On Tue, Mar 13, 2007 at 09:16:29AM +, Christoph Hellwig wrote: Document as well in the kernel_thread() API, as I notice people still use kernel_thread() some places (ex: rtasd.c in powerpc arch)? They shouldn't use kernel_thread. Hmm ..that needs to be documented as well then! I can

Re: s2ram still broken with CONFIG_NO_HZ / HPET (macbook pro)

2007-03-13 Thread Soeren Sonnenburg
On Mon, 2007-03-12 at 19:59 +0900, Tejun Heo wrote: Soeren Sonnenburg wrote: Elsewise I still see the ATA: abnormal status 0x80 on port 0x000140df ATA: abnormal status 0x80 on port 0x000140df ata1.00: configured for UDMA/33 ata3.01: revalidation failed (errno=-2) ata3: failed to

Re: Question re hiddev

2007-03-13 Thread Jiri Kosina
On Tue, 13 Mar 2007, Robert Marquardt wrote: as there are many Bluetooth devices with conform to HID specification Namely the Wii controller which is already happily used by many programmers through Windows HID API. Hi Robert, not only this piece of hardware, but many others - for example

[PATCH 2.6.21-rc3-mm2 0/4] Futexes functionalities and improvements

2007-03-13 Thread Pierre . Peiffer
Hi Andrew, This is a re-send of a series of patches concerning futexes (here after is a short description) Could you consider them for inclusion in -mm tree ? All of them have already been discussed in January and have already been included in -rt for a while. I think

[PATCH 2.6.21-rc3-mm2 1/4] futex priority based wakeup

2007-03-13 Thread Pierre . Peiffer
Today, all threads waiting for a given futex are woken in FIFO order (first waiter woken first) instead of priority order. This patch makes use of plist (pirotity ordered lists) instead of simple list in futex_hash_bucket. All non-RT threads are stored with priority MAX_RT_PRIO, causing them to

[PATCH 2.6.21-rc3-mm2 2/4] Make futex_wait() use an hrtimer for timeout

2007-03-13 Thread Pierre . Peiffer
This patch modifies futex_wait() to use an hrtimer + schedule() in place of schedule_timeout(). schedule_timeout() is tick based, therefore the timeout granularity is the tick (1 ms, 4 ms or 10 ms depending on HZ). By using a high resolution timer for timeout wakeup, we can attain a much finer

Re: /sys/devices/system/cpu/cpuX/online are missing

2007-03-13 Thread Russell King
On Tue, Mar 13, 2007 at 09:40:39AM +, Russell King wrote: On Tue, Mar 13, 2007 at 10:11:59AM +0100, Heiko Carstens wrote: On Tue, Mar 13, 2007 at 10:03:50AM +0100, Heiko Carstens wrote: I was referring to arch/ppc not arch/powerpc. But it seems that arch/ppc doesn't support cpu

[PATCH 2.6.21-rc3-mm2 4/4] sys_futex64 : allows 64bit futexes

2007-03-13 Thread Pierre . Peiffer
This last patch is an adaptation of the sys_futex64 syscall provided in -rt patch (originally written by Ingo). It allows the use of 64bit futex. I have re-worked most of the code to avoid the duplication of the code. It does not provide the functionality for all architectures (only for x64 for

Re: Gigabyte GA-M57SLI-S4 (the linuxbios compatible version) problems

2007-03-13 Thread ST
Hi Ingo That seem to be no hardware failure. It's the same here. But with the recent bigiron-kernel from Ubuntu edgy eft (Ubuntu 2.6.17-11.35-server-bigiron). Thanks for your answer. Since this board has linuxbios support and i plan to put it on this board, there has been a post which tells

[PATCH 2.6.21-rc3-mm2 3/4] futex_requeue_pi optimization

2007-03-13 Thread Pierre . Peiffer
This patch provides the futex_requeue_pi functionality. This provides an optimization, already used for (normal) futexes, to be used for PI-futexes. This optimization is currently used by the glibc in pthread_broadcast, when using normal mutexes. With futex_requeue_pi, it can be used with

Re: [RFC][PATCH 4/7] RSS accounting hooks over the code

2007-03-13 Thread Eric W. Biederman
Herbert Poetzl [EMAIL PROTECTED] writes: On Mon, Mar 12, 2007 at 09:50:08AM -0700, Dave Hansen wrote: On Mon, 2007-03-12 at 19:23 +0300, Kirill Korotaev wrote: For these you essentially need per-container page-_mapcount counter, otherwise you can't detect whether rss group still has the

Porting V4L2 drivers to 2.6.20

2007-03-13 Thread Maximus
Hey, am porting V4L2 drivers from 2.6.13 to 2.6.20. The driver is using a structure 'video_device' which exists in include/linux/videodev.h. However, The linux kernel in 2.6.20 doesnot have that structure?. Has the architecture changed between 2.6.13 to 2.6.20 for V4L2?.

[PATCH] x86_64: fix cpu MHz reporting on constant_tsc cpus

2007-03-13 Thread Joerg Roedel
From: Mark Langsdorf [EMAIL PROTECTED] From: Joerg Roedel [EMAIL PROTECTED] This patch fixes the reporting of cpu_mhz in /proc/cpuinfo on CPUs with a constant TSC rate and a kernel with disabled cpufreq. Signed-off-by: Mark Langsdorf [EMAIL PROTECTED] Signed-off-by: Joerg Roedel [EMAIL

Re: SMP performance degradation with sysbench

2007-03-13 Thread Nick Piggin
Andrea Arcangeli wrote: On Tue, Mar 13, 2007 at 04:11:02PM +1100, Nick Piggin wrote: Hi Anton, Very cool. Yeah I had come to the conclusion that it wasn't a kernel issue, and basically was afraid to look into userspace ;) btw, regardless of what glibc is doing, still the cpu shouldn't go

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Con Kolivas
On Tuesday 13 March 2007 20:39, Ingo Molnar wrote: * Mike Galbraith [EMAIL PROTECTED] wrote: I just retested with the encoders at nice 0, and the x/gforce combo is terrible. [...] ok. So nice levels had nothing to do with it - it's some other regression somewhere. How does the vanilla

Re: Porting V4L2 drivers to 2.6.20

2007-03-13 Thread Laurent Pinchart
Hey, am porting V4L2 drivers from 2.6.13 to 2.6.20. The driver is using a structure 'video_device' which exists in include/linux/videodev.h. However, The linux kernel in 2.6.20 doesnot have that structure?. Has the architecture changed between 2.6.13 to 2.6.20

Re: Move to unshared VMAs in NOMMU mode?

2007-03-13 Thread David Howells
Robin Getz [EMAIL PROTECTED] wrote: We (noMMU) folks need to have special code anyway - so why not put it there, and try not to increase memory footprint? I'd like to have the drivers and filesystems need to know as little as possible about whether they're working in MMU-mode or NOMMU-mode -

Re: [PATCH] kthread_should_stop_check_freeze (was: Re: [PATCH -mm 3/7] Freezer: Remove PF_NOFREEZE from rcutorture thread)

2007-03-13 Thread Christoph Hellwig
On Tue, Mar 13, 2007 at 03:28:08PM +0530, Srivatsa Vaddagiri wrote: On Tue, Mar 13, 2007 at 09:16:29AM +, Christoph Hellwig wrote: Document as well in the kernel_thread() API, as I notice people still use kernel_thread() some places (ex: rtasd.c in powerpc arch)? They shouldn't use

Re: [ck] Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Xavier Bestel
On Tue, 2007-03-13 at 20:31 +1100, Con Kolivas wrote: nice on my debian etch seems to choose nice +10 without arguments contrary to a previous discussion that said 4 was the default. However 4 is a good value to use as a base of sorts. I don't see why. nice uses +10 by default on all linux

Re: [RFC][PATCH 4/7] RSS accounting hooks over the code

2007-03-13 Thread Nick Piggin
Eric W. Biederman wrote: Herbert Poetzl [EMAIL PROTECTED] writes: On Mon, Mar 12, 2007 at 09:50:08AM -0700, Dave Hansen wrote: On Mon, 2007-03-12 at 19:23 +0300, Kirill Korotaev wrote: For these you essentially need per-container page-_mapcount counter, otherwise you can't detect whether

Re: SMP performance degradation with sysbench

2007-03-13 Thread Andrea Arcangeli
On Tue, Mar 13, 2007 at 09:06:14PM +1100, Nick Piggin wrote: Well ignoring the HT issue, I was seeing lots of idle time simply because userspace could not keep up enough load to the scheduler. There simply were fewer runnable tasks than CPU cores. When you said idle I thought idle and not

Re: SMP performance degradation with sysbench

2007-03-13 Thread Nick Piggin
Andrea Arcangeli wrote: On Tue, Mar 13, 2007 at 09:06:14PM +1100, Nick Piggin wrote: Well ignoring the HT issue, I was seeing lots of idle time simply because userspace could not keep up enough load to the scheduler. There simply were fewer runnable tasks than CPU cores. When you said idle

[PATCH] Fix corruption of memmap on IA64 SPARSEMEM when mem_section is not a power of 2

2007-03-13 Thread Mel Gorman
There are problems in the use of SPARSEMEM and pageblock flags that causes problems on ia64. The first part of the problem is that units are incorrect in SECTION_BLOCKFLAGS_BITS computation. This results in a map_section's section_mem_map being treated as part of a bitmap which isn't good. This

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread hui
On Tue, Mar 13, 2007 at 08:41:05PM +1100, Con Kolivas wrote: On Tuesday 13 March 2007 20:29, Ingo Molnar wrote: So the question is: if all tasks are on the same nice level, how does, in Mike's test scenario, RSDL behave relative to the current interactivity code? ... The only way to get

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Andrew Morton
On Tue, 13 Mar 2007 19:03:38 +1100 Nick Piggin [EMAIL PROTECTED] wrote: Andrew Morton wrote: On Tue, 13 Mar 2007 00:13:25 -0700 (PDT) Christoph Lameter [EMAIL PROTECTED] wrote: Page table pages have the characteristics that they are typically zero or in a known state when they are freed.

Re: 2.6.20*: PATA DMA timeout, hangs (2)

2007-03-13 Thread Bartlomiej Zolnierkiewicz
On Tuesday 13 March 2007, Frank van Maarseveen wrote: On Mon, Mar 12, 2007 at 09:40:25PM +0100, Bartlomiej Zolnierkiewicz wrote: Hi, On Monday 12 March 2007, Frank van Maarseveen wrote: On Mon, Mar 12, 2007 at 01:21:18PM +0100, Bartlomiej Zolnierkiewicz wrote: Hi,

Re: SMP performance degradation with sysbench

2007-03-13 Thread Andrea Arcangeli
On Tue, Mar 13, 2007 at 09:37:54PM +1100, Nick Piggin wrote: Well it wasn't iowait time. From Anton's analysis, I would probably say it was time waiting for either the glibc malloc mutex or MySQL heap mutex. So it again makes little sense to me that this is idle time, unless some userland

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Nick Piggin
Andrew Morton wrote: On Tue, 13 Mar 2007 19:03:38 +1100 Nick Piggin [EMAIL PROTECTED] wrote: Page allocator still requires interrupts to be disabled, which this doesn't. Bah. How many cli/sti statements fit into a single cachemiss? On a Pentium 4? ;) Sure, that is a minor detail,

Re: [Bugme-new] [Bug 8187] New: 2.6.20 PCI: Quirks patch breaks X11 on I82801

2007-03-13 Thread Bartlomiej Zolnierkiewicz
On Tuesday 13 March 2007, Andrew Morton wrote: On Mon, 12 Mar 2007 13:30:05 -0700 [EMAIL PROTECTED] wrote: http://bugzilla.kernel.org/show_bug.cgi?id=8187 Summary: 2.6.20 PCI: Quirks patch breaks X11 on I82801 Kernel Version: 2.6.20 Status: NEW

Re: SMP performance degradation with sysbench

2007-03-13 Thread Nick Piggin
Andrea Arcangeli wrote: On Tue, Mar 13, 2007 at 09:37:54PM +1100, Nick Piggin wrote: Well it wasn't iowait time. From Anton's analysis, I would probably say it was time waiting for either the glibc malloc mutex or MySQL heap mutex. So it again makes little sense to me that this is idle

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Andrew Morton
On Tue, 13 Mar 2007 22:06:46 +1100 Nick Piggin [EMAIL PROTECTED] wrote: Andrew Morton wrote: On Tue, 13 Mar 2007 19:03:38 +1100 Nick Piggin [EMAIL PROTECTED] wrote: ... Page allocator still requires interrupts to be disabled, which this doesn't. it is worthwhile. If you want a

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Christoph Lameter
On Tue, 13 Mar 2007, Andrew Morton wrote: On Tue, 13 Mar 2007 00:13:25 -0700 (PDT) Christoph Lameter [EMAIL PROTECTED] wrote: Page table pages have the characteristics that they are typically zero or in a known state when they are freed. Well if they're zero then perhaps they should

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Christoph Lameter
On Tue, 13 Mar 2007, Andrew Morton wrote: Yeah, prezeroing in idle is probably pointless. But I'm not aware of anyone having tried it properly... Ok, then what did I do wrong 3 years ago with the prezeroing patchsets? - To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Mike Galbraith
On Tue, 2007-03-13 at 21:06 +1100, Con Kolivas wrote: On Tuesday 13 March 2007 20:39, Ingo Molnar wrote: * Mike Galbraith [EMAIL PROTECTED] wrote: I just retested with the encoders at nice 0, and the x/gforce combo is terrible. [...] ok. So nice levels had nothing to do with it - it's

Re: Need help on mach-ep93xx

2007-03-13 Thread Ben Dooks
On Tue, Mar 13, 2007 at 10:54:08AM +0530, Maxin John wrote: Hi, I have one question mach-ep93xx. In EP93xx IRQ handling part in core.c, the 2.6.19.2 kernel and newer kernels are configuring the 16 interrupts of the ports A B together. The code is not using the interrupt capability

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Andrew Morton
On Tue, 13 Mar 2007 04:17:26 -0700 (PDT) Christoph Lameter [EMAIL PROTECTED] wrote: On Tue, 13 Mar 2007, Andrew Morton wrote: On Tue, 13 Mar 2007 00:13:25 -0700 (PDT) Christoph Lameter [EMAIL PROTECTED] wrote: Page table pages have the characteristics that they are typically zero

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Nick Piggin
Andrew Morton wrote: On Tue, 13 Mar 2007 22:06:46 +1100 Nick Piggin [EMAIL PROTECTED] wrote: Andrew Morton wrote: On Tue, 13 Mar 2007 19:03:38 +1100 Nick Piggin [EMAIL PROTECTED] wrote: ... Page allocator still requires interrupts to be disabled, which this doesn't. it is worthwhile.

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Andrew Morton
On Tue, 13 Mar 2007 04:20:48 -0700 (PDT) Christoph Lameter [EMAIL PROTECTED] wrote: On Tue, 13 Mar 2007, Andrew Morton wrote: Yeah, prezeroing in idle is probably pointless. But I'm not aware of anyone having tried it properly... Ok, then what did I do wrong 3 years ago with the

Re: SMP performance degradation with sysbench

2007-03-13 Thread Eric Dumazet
On Tuesday 13 March 2007 12:12, Nick Piggin wrote: I guess googlemalloc (tcmalloc?) isn't suitable for a general purpose glibc allocator. But I wonder if there are other improvements that glibc can do here? I cooked a patch some time ago to speedup threaded apps and got no feedback.

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Serge Belyshev
Mike Galbraith [EMAIL PROTECTED] writes: [snip] It seems to be a plain linear slowdown. The lurchiness I'm experiencing varies in intensity, and is impossible to quantify. I see neither lurchiness nor slowdown in mainline through -j8. Whaa? make -j8 on mainline makes my desktop box

Re: SMP performance degradation with sysbench

2007-03-13 Thread Andrea Arcangeli
On Tue, Mar 13, 2007 at 10:12:19PM +1100, Nick Piggin wrote: They'll be sleeping in futex_wait in the kernel, I think. One thread will hold the critical mutex, some will be off doing their own thing, but importantly there will be many sleeping for the mutex to become available. The initial

Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2

2007-03-13 Thread Mike Galbraith
On Tue, 2007-03-13 at 14:41 +0300, Serge Belyshev wrote: Mike Galbraith [EMAIL PROTECTED] writes: [snip] It seems to be a plain linear slowdown. The lurchiness I'm experiencing varies in intensity, and is impossible to quantify. I see neither lurchiness nor slowdown in mainline through

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Andrew Morton
On Tue, 13 Mar 2007 22:30:19 +1100 Nick Piggin [EMAIL PROTECTED] wrote: We don't actually have to zap_pte_range the entire page table in order to free it (IIRC we used to have to, before the 4lpt patches). I'm trying to remember why we ever would have needed to zero out the pagetable pages if

Re: SMP performance degradation with sysbench

2007-03-13 Thread Nick Piggin
Eric Dumazet wrote: On Tuesday 13 March 2007 12:12, Nick Piggin wrote: I guess googlemalloc (tcmalloc?) isn't suitable for a general purpose glibc allocator. But I wonder if there are other improvements that glibc can do here? I cooked a patch some time ago to speedup threaded apps and got

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Nick Piggin
Andrew Morton wrote: On Tue, 13 Mar 2007 22:30:19 +1100 Nick Piggin [EMAIL PROTECTED] wrote: We don't actually have to zap_pte_range the entire page table in order to free it (IIRC we used to have to, before the 4lpt patches). I'm trying to remember why we ever would have needed to zero out

Re: SMP performance degradation with sysbench

2007-03-13 Thread Eric Dumazet
On Tuesday 13 March 2007 12:42, Andrea Arcangeli wrote: My wild guess is that they're allocating memory after taking futexes. If they do, something like this will happen: taskAtaskB taskC user lock mmap_sem lock mmap sem - schedule

Re: [RFC] hwbkpt: Hardware breakpoints (was Kwatch)

2007-03-13 Thread Alan Cox
On Tue, 13 Mar 2007 01:00:50 -0700 (PDT) Roland McGrath [EMAIL PROTECTED] wrote: Well, I can add in the test for 0, but finding the set of always-on bits in DR6 will have to be done separately. Isn't it possible that different CPUs could have different bits? I don't know, but it seems

Re: SMP performance degradation with sysbench

2007-03-13 Thread Nick Piggin
Andrea Arcangeli wrote: On Tue, Mar 13, 2007 at 10:12:19PM +1100, Nick Piggin wrote: They'll be sleeping in futex_wait in the kernel, I think. One thread will hold the critical mutex, some will be off doing their own thing, but importantly there will be many sleeping for the mutex to become

Re: [QUICKLIST 0/4] Arch independent quicklists V2

2007-03-13 Thread Andrew Morton
On Tue, 13 Mar 2007 23:01:11 +1100 Nick Piggin [EMAIL PROTECTED] wrote: Andrew Morton wrote: On Tue, 13 Mar 2007 22:30:19 +1100 Nick Piggin [EMAIL PROTECTED] wrote: We don't actually have to zap_pte_range the entire page table in order to free it (IIRC we used to have to, before the 4lpt

Re: sys_write() racy for multi-threaded append?

2007-03-13 Thread Alan Cox
But on that note -- do you have any idea how one might get ltrace to work on a multi-threaded program, or how one might enhance it to instrument function calls from one shared library to another? Or I don't know a vast amount about ARM ELF user space so no. better yet, can you advise me on

IDE disk runs just in DMA/33 with 2.6.20.2 on nVidia CK804 controller

2007-03-13 Thread l . genoni
Hi, I reported this also for 2.6.20 kernel. new libata with controller nVidia CK804 initializes the disk in DMA/33, with with 2.6.19.5 and previous the disk is correctly inizialized in DMA/100. Tha cable is OK, and with older kernels the disks runs without troubles. The sistem has two sata

  1   2   3   4   5   >