Re: [PATCH] libata-sff: Don't call bmdma_stop on non DMA capable controllers

2007-01-25 Thread Linus Torvalds
On Fri, 26 Jan 2007, David Woodhouse wrote: > > My question was about _how_ you think this should be achieved in this > particular case. I already told you. Have you noticed that the resource-allocation code _already_ never returns zero on a PC? Have you noticed that the resource-allocation

[RFC] Fair-user scheduler

2007-01-25 Thread Srivatsa Vaddagiri
Current Linux CPU scheduler doesnt recognize process aggregates while allocating bandwidth. As a result of this, an user could simply spawn large number of processes and get more bandwidth than others. Here's a patch that provides fair allocation for all users in a system. Some benchmark numbers

[PATCH 1/2] core scheduler changes

2007-01-25 Thread Srivatsa Vaddagiri
This patch does several things: - Introduces the notion of control window (current set at 1 sec - ideally the window size should be adjusted based on number of users to avoid rapid context switches). Bandwidth of each user is controlled within this window.

[PATCH 2/2] Track number of users in the system

2007-01-25 Thread Srivatsa Vaddagiri
This patch tracks number of users in a system and divides cpu bandwidth equally among them. Signed-off-by : Srivatsa Vaddagiri <[EMAIL PROTECTED]> --- diff -puN include/linux/sched.h~user-interface include/linux/sched.h --- linux-2.6.20-rc5/include/linux/sched.h~user-interface 2007-01-2

Re: [PATCH] nfs: fix congestion control -v4

2007-01-25 Thread Andrew Morton
On Thu, 25 Jan 2007 21:31:43 -0800 (PST) Christoph Lameter <[EMAIL PROTECTED]> wrote: > On Thu, 25 Jan 2007, Andrew Morton wrote: > > > atomic_t is 32-bit. Put 16TB of memory under writeback and blam. > > We have systems with 8TB main memory and are able to get to 16TB. But I bet you don't use

Re: [PATCH 7/8] user ns: handle file sigio

2007-01-25 Thread Andrew Morton
On Thu, 25 Jan 2007 23:38:08 -0600 "Serge E. Hallyn" <[EMAIL PROTECTED]> wrote: > fs/fcntl.c|3 +-- > include/linux/sched.h |4 +--- > 2 files changed, 2 insertions(+), 5 deletions(-) My confidence in this lot: introduce-and-use-get_task_mnt_ns.patch introduce-and-use-get_ta

Re: [RFC PATCH -rt 1/2] RCU priority boosting that survives semi-vicious testing

2007-01-25 Thread Josh Triplett
Paul E. McKenney wrote: > On Thu, Jan 25, 2007 at 11:58:16AM -0800, Paul E. McKenney wrote: >> On Thu, Jan 25, 2007 at 01:29:23AM -0800, Josh Triplett wrote: >>> Overall, this code looks sensible to me. Some comments on the patch below. > > [ . . . ] > >> Thank you again for the careful and thor

Re: [Ksummit-2006-discuss] 2007 Linux Kernel Summit

2007-01-25 Thread Greg KH
On Thu, Jan 25, 2007 at 10:28:49PM -0500, Theodore Tso wrote: > On Fri, Jan 26, 2007 at 06:16:13AM +0530, Sunil Naidu wrote: > > Good thoughts ;-) I too believe in this - Where there is a Will, > > there is a Way! That's the reason why I have proposed India as the > > location for KS 2007, am stil

Re: [PATCH] libata-sff: Don't call bmdma_stop on non DMA capable controllers

2007-01-25 Thread Linus Torvalds
On Thu, 25 Jan 2007, Linus Torvalds wrote: > > Have you noticed that the resource-allocation code _already_ never returns > zero on sparc64? Btw, that was a rhetorical question, and I'm not actually sure what the heck sparc64 will _really_ do ;) I picked sparc64 as an example, because I _thi

Re: SATA ahci Bug in 2.6.19.x

2007-01-25 Thread Stephen Evanchik
On 1/26/07, Luming Yu <[EMAIL PROTECTED]> wrote: > Is there any difference in dmesg with acpi=off? what is your sata driver? The only difference is that I don't see the "ACPI: PCI Interrupt :00:0f.0[B] -> GSI 21 (level, low) -> IRQ 19" printk. The driver is AHCI but the device is a VIA chip

Re: [RFC PATCH -rt 2/2] RCU priority boosting additions to rcutorture

2007-01-25 Thread Josh Triplett
Paul E. McKenney wrote: > On Thu, Jan 25, 2007 at 11:06:35AM -0800, Josh Triplett wrote: >> Paul E. McKenney wrote: >>> On Thu, Jan 25, 2007 at 12:47:04AM -0800, Josh Triplett wrote: One major item: this new test feature really needs a new module parameter to enable or disable it. >

Re: [RFC] Track mlock()ed pages

2007-01-25 Thread Nick Piggin
Christoph Lameter wrote: Add NR_MLOCK Track mlocked pages via a ZVC I think it is not quite right. You are tracking the number of ptes that point to mlocked pages, which can be >= the actual number of pages. Also, page_add_anon_rmap still needs to be balanced with page_remove_rmap. I can't t

Re: [PATCH] namespaces: fix exit race by splitting exit

2007-01-25 Thread Andrew Morton
On Thu, 25 Jan 2007 23:26:59 -0600 "Serge E. Hallyn" <[EMAIL PROTECTED]> wrote: > Fix exit race by splitting the nsproxy putting into two pieces. > First piece reduces the nsproxy refcount. If we dropped the last > reference, then it puts the mnt_ns, and returns the nsproxy as a > hint to the cal

Re: [RFC] Track mlock()ed pages

2007-01-25 Thread Christoph Lameter
On Fri, 26 Jan 2007, Nick Piggin wrote: > Christoph Lameter wrote: > > Add NR_MLOCK > > > > Track mlocked pages via a ZVC > > I think it is not quite right. You are tracking the number of ptes > that point to mlocked pages, which can be >= the actual number of pages. Mlocked pages are not inher

Re: [PATCH] namespaces: fix exit race by splitting exit

2007-01-25 Thread Andrew Morton
On Thu, 25 Jan 2007 23:26:59 -0600 "Serge E. Hallyn" <[EMAIL PROTECTED]> wrote: > Fix exit race by splitting the nsproxy putting into two pieces. > First piece reduces the nsproxy refcount. This broke introduce-and-use-get_task_mnt_ns.patch nsproxy-externalizes-exit_task_namespac

Re: Juju

2007-01-25 Thread Greg KH
On Thu, Jan 25, 2007 at 03:38:24PM -0800, Pete Zaitcev wrote: > On Thu, 25 Jan 2007 16:18:35 -0500, Kristian H??gsberg <[EMAIL PROTECTED]> > wrote: > > > > I see that ORBs are always allocated with a call (like SKB) and not > > > embedded into drivers (like URBs). It's great, keep it up. Also, >

Re: [PATCH] nfs: fix congestion control -v4

2007-01-25 Thread Christoph Lameter
On Thu, 25 Jan 2007, Andrew Morton wrote: > > We have systems with 8TB main memory and are able to get to 16TB. > > But I bet you don't use 4k pages on 'em ;) IA64 can be configured for 4k pagesize but yes 16k is the default. There are plans to go much higher though. Plus there may be other rea

Re: [PATCH] Add a rounddown_pow_of_two() macro to log2.h.

2007-01-25 Thread Robert P. J. Day
On Thu, 25 Jan 2007, Andrew Morton wrote: > On Thu, 25 Jan 2007 04:32:12 -0500 (EST) > "Robert P. J. Day" <[EMAIL PROTECTED]> wrote: > > +/* > > + * round down to nearest power of two > > + */ > > +static inline __attribute__((const)) > > +unsigned long __rounddown_pow_of_two(unsigned long n) > >

Re: 2.6.20-rc5: cp 18gb 18gb.2 = OOM killer, reproducible just like 2.16.19.2

2007-01-25 Thread Mark Hahn
Something is seriously wrong with that OOM killer. do you know you don't have to operate in OOM-slaughter mode? "vm.overcommit_memory = 2" in your /etc/sysctl.conf puts you into a mode where the kernel tracks your "committed" memory needs, and will eventually cause some allocations to fail.

Re: 2.6.20-rc5: cp 18gb 18gb.2 = OOM killer, reproducible just like 2.16.19.2

2007-01-25 Thread Justin Piszcz
On Thu, 25 Jan 2007, Mark Hahn wrote: > > Something is seriously wrong with that OOM killer. > > do you know you don't have to operate in OOM-slaughter mode? > > "vm.overcommit_memory = 2" in your /etc/sysctl.conf puts you into a mode where > the kernel tracks your "committed" memory needs, an

Re: [PATCH 3/3] ufs: rellocation fix

2007-01-25 Thread Evgeniy Dushistov
On Wed, Jan 24, 2007 at 08:21:07PM -0800, Andrew Morton wrote: > On Mon, 22 Jan 2007 18:07:51 +0300 > Evgeniy Dushistov <[EMAIL PROTECTED]> wrote: > > > - for (i = 0; i < count; i += blk_per_page) { > > + for (i = 0; i < count; i = (i | mask) + 1) { > > This is a funny looking thing. As far

Re: [PATCH][RFC] incorrect direct io error handling (v3)

2007-01-25 Thread Andrew Morton
On Wed, 24 Jan 2007 22:05:06 +0300 Dmitriy Monakhov <[EMAIL PROTECTED]> wrote: > incorrect direct io error handling (v3) > Changes from v2: > - Remove BUG_ON(!mutex_is_locked(..)) for non blkdev. > - vmtruncate() called from generic_file_aio_write(). > - depends on patch titled: >[PATH][RFC

Re: [PATCH 2.6.21 1/4] ehca: fix improper use of yield with spinlock held

2007-01-25 Thread Christoph Hellwig
On Wed, Jan 24, 2007 at 12:10:36AM +0100, Hoang-Nam Nguyen wrote: > Here is a patch for ehca_cq.c that fixes improper use of yield > with spinlock held. Btw, please don't forget to replace the yield call with a proper condition for 2.6.21. - To unsubscribe from this list: send the line "unsubscri

[PATCH v1] sata_mv: conversion to new EH

2007-01-25 Thread Jeff Garzik
This is the first cut at converting sata_mv to new EH. It builds, but is untested. Done: - freeze, thaw - hardreset - prereset, software: intentionally not implemented Not yet done: - initiate EH from interrupt handler. Right now the "whack it" old error handling remains, when an error is see

Re: [PATCH v1] sata_mv: conversion to new EH

2007-01-25 Thread Jeff Garzik
Jeff Garzik wrote: This is the first cut at converting sata_mv to new EH. It builds, but is untested. Done: - freeze, thaw - hardreset - prereset, software: intentionally not implemented s/software/softreset/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

[PATCH] USB: In init_endpoint_class, use PTR_ERR to obtain an errno value, not IS_ERR

2007-01-25 Thread Josh Triplett
init_endpoint_class calls class_create, and checks the result for an error with IS_ERR; however, if true, it then returns the result of IS_ERR (a boolean) rather than PTR_ERR (the actual errno). Signed-off-by: Josh Triplett <[EMAIL PROTECTED]> --- drivers/usb/core/endpoint.c |2 +- 1 files ch

Bcm43xx oops after suspend to disk

2007-01-25 Thread roucaries bastien
My bcm43xx oops after suspend to disk on a 2.6.20rc5 kernel (preempt+smp). --- Jan 25 19:47:39 portablebastien kernel: caller is oops_begin+0xb/0x80 Jan 25 19:47:39 portablebastien kernel: Jan 25 19:47:39 portablebastien kernel: Call Trace: Jan 25 19:47:39 portablebastien kernel: []

[PATCH] KVM: 'asm' operand has impossible constraints

2007-01-25 Thread S.Çağlar Onur
Hi; -rc6 fails with latest gcc 4.2 snapshot as following; CC [M] drivers/kvm/svm.o drivers/kvm/svm.c:206: warning: 'inject_db' defined but not used drivers/kvm/svm.c: In function 'svm_vcpu_run': drivers/kvm/kvm.h:560: error: 'asm' operand has impossible constraints make[2]: *** [drivers/kvm/svm.

[take34 6/10] kevent: Pipe notifications.

2007-01-25 Thread Evgeniy Polyakov
Pipe notifications. diff --git a/fs/pipe.c b/fs/pipe.c index 68090e8..0c75bf1 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -313,6 +314,7 @@ redo: break; } if

[take34 7/10] kevent: Signal notifications.

2007-01-25 Thread Evgeniy Polyakov
Signal notifications. This type of notifications allows to deliver signals through kevent queue. One can find example application signal.c on project homepage. If KEVENT_SIGNAL_NOMASK bit is set in raw_u64 id then signal will be delivered only through queue, otherwise both delivery types are use

[take34 8/10] kevent: Kevent posix timer notifications.

2007-01-25 Thread Evgeniy Polyakov
Kevent posix timer notifications. Simple extensions to POSIX timers which allows to deliver notification of the timer expiration through kevent queue. Example application posix_timer.c can be found in archive on project homepage. Signed-off-by: Evgeniy Polyakov <[EMAIL PROTECTED]> diff --git

[take34 5/10] kevent: Timer notifications.

2007-01-25 Thread Evgeniy Polyakov
Timer notifications. Timer notifications can be used for fine grained per-process time management, since interval timers are very inconvenient to use, and they are limited. This subsystem uses high-resolution timers. id.raw[0] is used as number of seconds id.raw[1] is used as number of nanosec

[take34 4/10] kevent: Socket notifications.

2007-01-25 Thread Evgeniy Polyakov
Socket notifications. This patch includes socket send/recv/accept notifications. Using trivial web server based on kevent and this features instead of epoll it's performance increased more than noticebly. More details about various benchmarks and server itself (evserver_kevent.c) can be found on

[take34 3/10] kevent: poll/select() notifications.

2007-01-25 Thread Evgeniy Polyakov
poll/select() notifications. This patch includes generic poll/select notifications. kevent_poll works simialr to epoll and has the same issues (callback is invoked not from internal state machine of the caller, but through process awake, a lot of allocations and so on). Signed-off-by: Evgeniy Po

[take34 9/10] kevent: Private userspace notifications.

2007-01-25 Thread Evgeniy Polyakov
Private userspace notifications. Allows to register notifications of any private userspace events over kevent. Events can be marked as readt using kevent_ctl(KEVENT_READY) command. Signed-off-by: Evgeniy Polyakov <[EMAIL PROTECTED]> diff --git a/kernel/kevent/kevent_unotify.c b/kernel/kevent/k

Re: [tipc-discussion] [RFC: 2.6 patch] net/tipc/: possible cleanups

2007-01-25 Thread Jon Maloy
Adrian Bunk wrote: This patch contains the following possible cleanups: - make needlessly global functions static - #if 0 unused functions Thanks. I think most of those were due for our next release, anyway. But we'll get it in, one way or another. - remove all EXPORT_SYMBOL's My impress

[ANNOUNCE] PRO/1000 PCI-e Software Developer Manual is now available

2007-01-25 Thread John Ronciak
The Software Developer Manual for the PRO/1000 PCI-e controllers is now available via the http://e1000.sf.net/ web site. The file is OpenSDM_8257x-10.pdf. I know it's been a long time coming but sometimes that's just how it goes. Enjoy. -- Cheers, John - To unsubscribe from this list: send the

Re: [ANNOUNCE] PRO/1000 PCI-e Software Developer Manual is now available

2007-01-25 Thread Jeff Garzik
John Ronciak wrote: The Software Developer Manual for the PRO/1000 PCI-e controllers is now available via the http://e1000.sf.net/ web site. The file is OpenSDM_8257x-10.pdf. I know it's been a long time coming but sometimes that's just how it goes. Enjoy. Nice, thanks for posting it!

Re: [ANNOUNCE] PRO/1000 PCI-e Software Developer Manual is now available

2007-01-25 Thread John W. Linville
On Thu, Jan 25, 2007 at 01:40:23PM -0800, John Ronciak wrote: > The Software Developer Manual for the PRO/1000 PCI-e controllers is > now available via the http://e1000.sf.net/ web site. The file is > OpenSDM_8257x-10.pdf. I know it's been a long time coming but > sometimes that's just how it goe

Re: + oops-in-drivers-net-shaperc.patch added to -mm tree

2007-01-25 Thread David Miller
From: [EMAIL PROTECTED] Date: Wed, 24 Jan 2007 19:54:51 -0800 > Hi, > > The following code: > [...] > > Causes the following oops: > ... > [ 66.355188] [] error_code+0x7c/0x84 > [ 66.355192] [] packet_sendmsg+0x147/0x201 [af_packet] > [ 66.355199] [] sock_sendmsg+0xf9/0x116 > [ 66.3

[take34 1/10] kevent: Description.

2007-01-25 Thread Evgeniy Polyakov
Description. diff --git a/Documentation/kevent.txt b/Documentation/kevent.txt new file mode 100644 index 000..d6e126f --- /dev/null +++ b/Documentation/kevent.txt @@ -0,0 +1,271 @@ +Description. + +int kevent_init(struct kevent_ring *ring, unsigned int ring_size, + unsigned int flags)

[take34 0/10] kevent: Generic event handling mechanism.

2007-01-25 Thread Evgeniy Polyakov
Generic event handling mechanism. Kevent is a generic subsytem which allows to handle event notifications. It supports both level and edge triggered events. It is similar to poll/epoll in some cases, but it is more scalable, it is faster and allows to work with essentially eny kind of events. Ev

[take34 10/10] kevent: Kevent based AIO (aio_sendfile()/aio_sendfile_path()).

2007-01-25 Thread Evgeniy Polyakov
Kevent based AIO (aio_sendfile()/aio_sendfile_path()). aio_sendfile()/aio_sendfile_path() contains of two major parts: AIO state machine and page processing code. The former is just a small subsystem, which allows to queue callback for theirs invocation in process' context on behalf of pool of

Re: [take34 0/10] kevent: Generic event handling mechanism.

2007-01-25 Thread Evgeniy Polyakov
On Thu, Jan 25, 2007 at 04:48:30PM +0300, Evgeniy Polyakov ([EMAIL PROTECTED]) wrote: > Changes from 'take33' patchset: > * Added optional header pointer and its size into aio_sendfile_path(), >which allows to send header and file in one syscall instead of >send(header), open file, sendf

<    1   2   3   4