Re: Question about Reiser4

2007-04-23 Thread H. Peter Anvin
Theodore Tso wrote: One of the big problems of using a filesystem as a DB is the system call overheads. If you use huge numbers of tiny files, then each attempt read an atom of information from the DB takes three system calls --- an open(), read(), and close(), with all of the overheads in

Re: MODULE_MAINTAINER

2007-04-23 Thread Rusty Russell
On Mon, 2007-04-23 at 07:52 -0400, Robert P. J. Day wrote: > On Mon, 23 Apr 2007, Rusty Russell wrote: > > > On Mon, 2007-04-23 at 11:33 +0200, Rene Herman wrote: > > > On 04/04/2007 06:38 PM, Rene Herman wrote: > > > > > > Rusty? > > > > Valid points have been made on both sides. I suggest: > >

Re: [REPORT] First "glitch1" results, 2.6.21-rc7-git6-CFSv5 + SD 0.46

2007-04-23 Thread Ed Tomlinson
On Monday 23 April 2007 19:45, Ed Tomlinson wrote: > On Monday 23 April 2007 17:57, Bill Davidsen wrote: > > I am not sure a binary attachment will go thru, I will move to the web > > ste if not. > > I did a quick try of this script here. > > With SD 0.46 with X at nice 0 I was getting 1-2

Re: [REPORT] First "glitch1" results, 2.6.21-rc7-git6-CFSv5 + SD 0.46

2007-04-23 Thread Ed Tomlinson
On Monday 23 April 2007 17:57, Bill Davidsen wrote: > I am not sure a binary attachment will go thru, I will move to the web > ste if not. I did a quick try of this script here. With SD 0.46 with X at nice 0 I was getting 1-2 frames per second. I decided to try cfs v5. The option disable auto

Re: [PATCH] Return EPERM not ECHILD on security_task_wait failure

2007-04-23 Thread James Morris
On Thu, 15 Mar 2007, Roland McGrath wrote: > This patch makes do_wait return -EPERM instead of -ECHILD if some > children were ruled out solely because security_task_wait failed. What about using the return value from the security_task_wait hook (which should be -EACCES) ? - James -- James

Re: SATA SB600 works in 2.6.20.4 but not in 2.6.21-rc5 with irqpoll parameter

2007-04-23 Thread Jeff Garzik
Karsten Vieth wrote: I can't report this problem from a new kernel, but i have the same problem with the kernel 2.6.20.1-33x from f7-test3. I managed to boot with these options: linux noapic acpi=off pci=nomsi irqpoll Can you narrow down the options? Hopefully pci=nomsi or similar should do

Re: Loud "pop" coming from hard drive on reboot

2007-04-23 Thread Chuck Ebbert
Peter Zijlstra wrote: > > but I have an increasing seek error rate as well. I got the ST disk > because thinkwiki suggested it. > Apparently Seagate has their own definition of seek error rate. Large numbers are normal, or at least very common. Now I wonder if they have their own way of doing

Re: [ANNOUNCE][PATCH] Kcli - Kernel command line interface.

2007-04-23 Thread Andrew Morton
On Mon, 23 Apr 2007 14:31:39 -0700 (PDT) Matt Ranon <[EMAIL PROTECTED]> wrote: > (text reformatted to less than 80 cols. Please, we'll get along a lot better if you don't send 1000-column emails) > The Jem team is pleased to announce the release of Kcli, an in-kernel > command line interface.

Re: [PATCH 03/25] xen: Add nosegneg capability to the vsyscall page notes

2007-04-23 Thread Roland McGrath
> + * It should contain: > + * hwcap 0 nosegneg > + * to match the mapping of bit to name that we give here. This needs to be "hwcap 0 nosegneg" to match: > +NOTE_KERNELCAP_BEGIN(1, 2) > +NOTE_KERNELCAP(1, "nosegneg") > +NOTE_KERNELCAP_END The actual bits you are using should be fine.

[PATCH 00/25] xen: Xen implementation for paravirt_ops

2007-04-23 Thread Jeremy Fitzhardinge
Hi Andi, This series of patches implements the Xen paravirt-ops interface. It applies to 2.6.21-rc7 + your patches + the last batch of pv_ops patches I posted. This patch generally restricts itself to Xen-specific parts of the tree, though it does make a few small changes elsewhere. These

[PATCH 02/25] xen: Allocate and free vmalloc areas

2007-04-23 Thread Jeremy Fitzhardinge
Allocate/destroy a 'vmalloc' VM area: alloc_vm_area and free_vm_area The alloc function ensures that page tables are constructed for the region of kernel virtual address space and mapped into init_mm. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> Signed-off-by: Ian Pratt <[EMAIL

Re: [RFC][PATCH -mm 2/3] freezer: Introduce freezer_flags

2007-04-23 Thread Oleg Nesterov
On 04/24, Rafael J. Wysocki wrote: > > On Tuesday, 24 April 2007 00:55, Oleg Nesterov wrote: > > On 04/24, Rafael J. Wysocki wrote: > > > > > > Should I clear it in dup_task_struct() or is there a better place? > > > > I personally think we should do this in dup_task_struct(). In fact, I > >

[PATCH 12/25] xen: Add support for preemption

2007-04-23 Thread Jeremy Fitzhardinge
Add Xen support for preemption. This is mostly a cleanup of existing preempt_enable/disable calls, or just comments to explain the current usage. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> --- arch/i386/xen/Kconfig |2 arch/i386/xen/enlighten.c | 93

[PATCH 14/25] xen: xen: deal with negative stolen time

2007-04-23 Thread Jeremy Fitzhardinge
Stolen time should never be negative; if it ever is, it probably indicates some other bug. However, if it does happen, then its better to just clamp it at zero, rather than trying to account for it as a huge positive number. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> ---

[PATCH 09/25] xen: Account for time stolen by Xen

2007-04-23 Thread Jeremy Fitzhardinge
This accounts for the time Xen steals from our VCPUs. This accounting gets run on each timer interrupt, just as a way to get it run relatively often, and when interesting things are going on. Stolen time is not really used by much in the kernel; it is reported in /proc/stats, and that's about

[PATCH 13/25] xen: xen: lazy-mmu operations

2007-04-23 Thread Jeremy Fitzhardinge
This patch uses the lazy-mmu hooks to batch mmu operations where possible. This is primarily useful for batching operations applied to active pagetables, which happens during mprotect, munmap, mremap and the like (mmap does not do bulk pagetable operations, so it isn't helped). Signed-off-by:

[PATCH 17/25] xen: Add early printk support via hvc console

2007-04-23 Thread Jeremy Fitzhardinge
Add early printk support via hvc console, enable using "earlyprintk=xen" on the kernel command line. From: Gerd Hoffmann <[EMAIL PROTECTED]> Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> Acked-by: Ingo Molnar <[EMAIL PROTECTED]> --- arch/x86_64/kernel/early_printk.c |5 +

[PATCH 03/25] xen: Add nosegneg capability to the vsyscall page notes

2007-04-23 Thread Jeremy Fitzhardinge
Add the "nosegneg" fake capabilty to the vsyscall page notes. This is used by the runtime linker to select a glibc version which then disables negative-offset accesses to the thread-local segment via %gs. These accesses require emulation in Xen (because segments are truncated to protect the

[PATCH 15/25] xen: xen time fixups

2007-04-23 Thread Jeremy Fitzhardinge
1. make sure timer state is set up before bringing up CPU 2. make sure snapshot of 64-bit time values is atomic Be sure, however, that the clockevent source is registered on its home CPU. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> --- arch/i386/xen/smp.c |4 +-

[PATCH 23/25] xen: Lockdep fixes for xen-netfront

2007-04-23 Thread Jeremy Fitzhardinge
netfront contains two locking problems found by lockdep: 1. rx_lock is a normal spinlock, and tx_lock is an irq spinlock. This means that in normal use, tx_lock may be taken by an interrupt routine while rx_lock is held. However, netif_disconnect_backend takes them in the order

[PATCH 16/25] xen: Use the hvc console infrastructure for Xen console

2007-04-23 Thread Jeremy Fitzhardinge
Implement a Xen back-end for hvc console. From: Gerd Hoffmann <[EMAIL PROTECTED]> Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> --- arch/i386/xen/Kconfig |1 arch/i386/xen/events.c|3 - drivers/Makefile |3 + drivers/xen/Makefile |1

[PATCH 11/25] xen: Xen SMP guest support

2007-04-23 Thread Jeremy Fitzhardinge
This is a fairly straightforward Xen implementation of smp_ops. One thing this must to is carefully set up all the various sibling and core maps so that the smp scheduler setup works properly (the setup is very simple, since vcpus don't have any siblings or multiple cores). Xen has its own IPI

[PATCH 22/25] xen: xen-netfront: use skb.cb for storing private data

2007-04-23 Thread Jeremy Fitzhardinge
Netfront's use of nh.raw and h.raw for storing page+offset is a bit hinky, and it breaks with upcoming network stack updates which reduce these fields to sub-pointer sizes. Fortunately, skb offers the "cb" field specifically for stashing this kind of info, so use it. Signed-off-by: Jeremy

Re: [PATCH 04/25] xen: Add XEN config options

2007-04-23 Thread Jeremy Fitzhardinge
Andi Kleen wrote: > On Monday 23 April 2007 23:56:42 Jeremy Fitzhardinge wrote: > >> The XEN config option enables the Xen paravirt_ops interface, which is >> installed when the kernel finds itself running under Xen. >> >> Xen is no longer a sub-architecture, so the X86_XEN subarch config >>

[PATCH 18/25] xen: Add Xen grant table support

2007-04-23 Thread Jeremy Fitzhardinge
Add Xen 'grant table' driver which allows granting of access to selected local memory pages by other virtual machines and, symmetrically, the mapping of remote memory pages which other virtual machines have granted access to. This driver is a prerequisite for many of the Xen virtual device

[PATCH 20/25] xen: Add Xen virtual block device driver.

2007-04-23 Thread Jeremy Fitzhardinge
The block device frontend driver allows the kernel to access block devices exported exported by a virtual machine containing a physical block device driver. Signed-off-by: Ian Pratt <[EMAIL PROTECTED]> Signed-off-by: Christian Limpach <[EMAIL PROTECTED]> Signed-off-by: Chris Wright <[EMAIL

[PATCH 21/25] xen: Add the Xen virtual network device driver.

2007-04-23 Thread Jeremy Fitzhardinge
The network device frontend driver allows the kernel to access network devices exported exported by a virtual machine containing a physical network device driver. Signed-off-by: Ian Pratt <[EMAIL PROTECTED]> Signed-off-by: Christian Limpach <[EMAIL PROTECTED]> Signed-off-by: Chris Wright <[EMAIL

[PATCH 07/25] xen: Complete pagetable pinning for Xen

2007-04-23 Thread Jeremy Fitzhardinge
Xen has a notion of pinned pagetables, which are pagetables that remain read-only to the guest and are validated by the hypervisor. This makes context switches much cheaper, because the hypervisor doesn't need to revalidate the pagetable each time. This patch adds a PG_pinned flag for pagetable

Re: [PATCH 00/25] xen: Xen implementation for paravirt_ops

2007-04-23 Thread Jeremy Fitzhardinge
Andi Kleen wrote: > On Monday 23 April 2007 23:56:38 Jeremy Fitzhardinge wrote: > >> Hi Andi, >> >> It applies to 2.6.21-rc7 + your patches + the last batch of pv_ops >> patches >> > > I got most of those except for the broken sched_clock change. > Er, we had a bit of back-and-forward

[PATCH 25/25] xen: Xen machine operations

2007-04-23 Thread Jeremy Fitzhardinge
Make the appropriate hypercalls to halt and reboot the virtual machine. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> --- arch/i386/xen/enlighten.c | 43 +++ arch/i386/xen/smp.c |4 +--- 2 files changed, 44 insertions(+), 3

[PATCH 08/25] xen: xen: fix multicall batching

2007-04-23 Thread Jeremy Fitzhardinge
Disable interrupts between allocating a multicall entry and actually issuing it, to prevent an interrupt from coming in, allocating and initializing further multicall entries, and then issuing them all, including the partially completed one. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]>

[PATCH 10/25] xen: Implement xen_sched_clock

2007-04-23 Thread Jeremy Fitzhardinge
Implement xen_sched_clock, which returns the number of ns the current vcpu has been actually in the running state (vs blocked, runnable-but-not-running, or offline) since boot. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> Cc: john stultz <[EMAIL PROTECTED]> ---

[PATCH 01/25] xen: Add apply_to_page_range() which applies a function to a pte range.

2007-04-23 Thread Jeremy Fitzhardinge
Add a new mm function apply_to_page_range() which applies a given function to every pte in a given virtual address range in a given mm structure. This is a generic alternative to cut-and-pasting the Linux idiomatic pagetable walking code in every place that a sequence of PTEs must be accessed.

[PATCH 24/25] xen: xen: diddle netfront

2007-04-23 Thread Jeremy Fitzhardinge
Move things around a bit to match xen-unstable netfront. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> --- drivers/net/xen-netfront.c | 36 +--- 1 file changed, 17 insertions(+), 19 deletions(-)

[PATCH 04/25] xen: Add XEN config options

2007-04-23 Thread Jeremy Fitzhardinge
The XEN config option enables the Xen paravirt_ops interface, which is installed when the kernel finds itself running under Xen. Xen is no longer a sub-architecture, so the X86_XEN subarch config option has gone. Xen is currently incompatible with PREEMPT, but this is fixed up later in the

Re: Prevent softlockup triggering in nvidiafb

2007-04-23 Thread Antonino A. Daplas
> On Mon, Apr 23, 2007 at 04:55:05PM +0100, Alan Cox wrote: > > On Mon, 23 Apr 2007 11:36:30 -0400 > > Dave Jones <[EMAIL PROTECTED]> wrote: > > > > > If the chip locks up, we get into a long polling loop, > > > where the softlockup detector kicks in. > > > See

Re: [RFC][PATCH -mm 2/3] freezer: Introduce freezer_flags

2007-04-23 Thread Rafael J. Wysocki
On Tuesday, 24 April 2007 00:55, Oleg Nesterov wrote: > On 04/24, Rafael J. Wysocki wrote: > > > > Should I clear it in dup_task_struct() or is there a better place? > > I personally think we should do this in dup_task_struct(). In fact, I believe > it is better to replace the > > *tsk =

Re: [PATCH 04/25] xen: Add XEN config options

2007-04-23 Thread Andi Kleen
On Monday 23 April 2007 23:56:42 Jeremy Fitzhardinge wrote: > The XEN config option enables the Xen paravirt_ops interface, which is > installed when the kernel finds itself running under Xen. > > Xen is no longer a sub-architecture, so the X86_XEN subarch config > option has gone. > > Xen is

Re: 2.6.20.7 locking up hard on boot

2007-04-23 Thread Marcos Pinto
I'm honestly not sure how to try what you suggested to try, since I'm nothing even remotely close to a kernel geek and it was over my head. However, I'd gladly test anything that you think would be worth testing, if you would please put it in way that I could understand, such as "change line

Re: Question about Reiser4

2007-04-23 Thread Theodore Tso
On Mon, Apr 23, 2007 at 06:52:16AM -0700, Eric Hopper wrote: > Oh, two things really interest me about Reiser4. First, I despise > having to care about how many tiny files I leave lying around when > writing a program. Berkeley DB and its ilk are evil, evil programs that > obscure data and make

Re: [RFC][PATCH -mm 2/3] freezer: Introduce freezer_flags

2007-04-23 Thread Rafael J. Wysocki
On Tuesday, 24 April 2007 00:41, Gautham R Shenoy wrote: > On Tue, Apr 24, 2007 at 12:40:17AM +0200, Rafael J. Wysocki wrote: > > On Tuesday, 24 April 2007 00:23, Oleg Nesterov wrote: > > > On 04/22, Rafael J. Wysocki wrote: > > > > > > > > Move all of the freezer-related flags to a separate

Re: [RFC][PATCH -mm 2/3] freezer: Introduce freezer_flags

2007-04-23 Thread Oleg Nesterov
On 04/24, Rafael J. Wysocki wrote: > > Should I clear it in dup_task_struct() or is there a better place? I personally think we should do this in dup_task_struct(). In fact, I believe it is better to replace the *tsk = *orig; with some helper (like setup_thread_stack() below), and that

RE: sendfile to nonblocking socket

2007-04-23 Thread David Schwartz
> As I see, nonblocking mode is enabled - sendfile sends less than asked. > But 2G via single 30 seconds sendfile call - this is blocking call. How > can I avoid that? I prefer sendfile as fastest way to send file > content to network socket. The problem with sendfile block on >

Re: 2.6.21-rc7: HPET enabled freeze my machine at boot

2007-04-23 Thread john stultz
On Mon, 2007-04-23 at 15:30 -0700, john stultz wrote: > On Sat, 2007-04-21 at 20:07 -0300, Guilherme M. Schroeder wrote: > > john stultz wrote: > > > On 4/19/07, guilherme <[EMAIL PROTECTED]> wrote: > > >> Hi, > > >> > > >> If i enable "High Resolution Timer Support", my machine stops here at > >

Re: [REPORT] cfs-v4 vs sd-0.44

2007-04-23 Thread Jeremy Fitzhardinge
Linus Torvalds wrote: > The "perfect" situation would be that when somebody goes to sleep, any > extra points it had could be given to whoever it woke up last. Note that > for something like X, it means that the points are 100% ephemeral: it gets > points when a client sends it a request, but

Re: [PATCH 00/25] xen: Xen implementation for paravirt_ops

2007-04-23 Thread Andi Kleen
On Monday 23 April 2007 23:56:38 Jeremy Fitzhardinge wrote: > Hi Andi, > > It applies to 2.6.21-rc7 + your patches + the last batch of pv_ops > patches I got most of those except for the broken sched_clock change. > I posted. How much testing outside Jeremylabs has it gotten? Some beta

Remove open coded implementations of memclear_highpage flush

2007-04-23 Thread Christoph Lameter
There are a series of open coded reimplementation of memclear_highpage_flush all over the page cache code. Call memclear_highpage_flush in those locations. Consolidates code and eases maintenance. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- fs/buffer.c | 77

Re: [patch] CFS scheduler, v4

2007-04-23 Thread Ingo Molnar
* Michael Gerdau <[EMAIL PROTECTED]> wrote: > > i'm pleased to announce release -v4 of the CFS patchset. The patch > > against v2.6.21-rc7 can be downloaded from: > > > > http://redhat.com/~mingo/cfs-scheduler/ > > I can't get 2.6.21-rc7-CFS-v4 to boot. Immediately after selecting > this

Re: Pagecache: find_or_create_page does not call a proper page allocator function

2007-04-23 Thread Andrew Morton
On Mon, 23 Apr 2007 15:33:07 -0700 (PDT) Christoph Lameter <[EMAIL PROTECTED]> wrote: > Grow dev page simply passes GFP_NOFS to find_or_create_page. This means the > allocation of radix tree nodes is done with GFP_NOFS and the allocation > of a new page is done using GFP_NOFS as well. > > The

Re: [RFC][PATCH -mm 2/3] freezer: Introduce freezer_flags

2007-04-23 Thread Gautham R Shenoy
On Tue, Apr 24, 2007 at 12:40:17AM +0200, Rafael J. Wysocki wrote: > On Tuesday, 24 April 2007 00:23, Oleg Nesterov wrote: > > On 04/22, Rafael J. Wysocki wrote: > > > > > > Move all of the freezer-related flags to a separate field in task_struct > > > and > > > introduce functions to operate

Re: Pagecache: find_or_create_page does not call a proper page allocator function

2007-04-23 Thread Christoph Lameter
And the second fix (cleanup patch will follow) Pagecache: find_or_create_page does not spread memory. The find_or_create function calls alloc_page with the gfp_mask passed to it which is derived from the mappings gfp mask. So the allocation flags are right (assuming my bugfix to fs/buffer.c is

Re: [RFC][PATCH -mm 2/3] freezer: Introduce freezer_flags

2007-04-23 Thread Rafael J. Wysocki
On Tuesday, 24 April 2007 00:23, Oleg Nesterov wrote: > On 04/22, Rafael J. Wysocki wrote: > > > > Move all of the freezer-related flags to a separate field in task_struct and > > introduce functions to operate them using set_bit() etc. > > > > [...snip...] > > > > ---

Re: Pagecache: find_or_create_page does not call a proper page allocator function

2007-04-23 Thread Christoph Lameter
On Mon, 23 Apr 2007, Andrew Morton wrote: > There are few calls to page_cache_alloc(). Would it not be simpler to just > add the additional argument to page_cache_alloc() (called "extra_gfp", > please) and to update all callers? And to remove page_cache_alloc_cold() > and replace all it callers

Re: 2.6.21-rc7: HPET enabled freeze my machine at boot

2007-04-23 Thread john stultz
On Sat, 2007-04-21 at 20:07 -0300, Guilherme M. Schroeder wrote: > john stultz wrote: > > On 4/19/07, guilherme <[EMAIL PROTECTED]> wrote: > >> Hi, > >> > >> If i enable "High Resolution Timer Support", my machine stops here at > >> boot: > >> > >> Clocksource tsc unstable (delta = -297340790165

Re: [PATCH 14/15] ide: rework the code for selecting the best DMA transfer mode

2007-04-23 Thread Bartlomiej Zolnierkiewicz
Hi, On Friday 20 April 2007, Sergei Shtylyov wrote: > Hello, I wrote: > > Index: b/drivers/ide/pci/hpt366.c > === > --- a/drivers/ide/pci/hpt366.c > +++ b/drivers/ide/pci/hpt366.c > @@ -513,43 +513,31 @@

Re: [PATCH pata-2.6 fix queue] aec62xx: fix PIO/DMA setup issues

2007-04-23 Thread Bartlomiej Zolnierkiewicz
On Sunday 22 April 2007, Sergei Shtylyov wrote: > Teach the driver's tuneproc() method to do PIO auto-runing properly since it > treated 5 instead of 255 as auto-tune request, and also passed the mode limit > of PIO5 to ide_get_best_pio_mode() despite supporting up to PIO4 only. > > While at it,

Re: [RFC][PATCH -mm 2/3] freezer: Introduce freezer_flags

2007-04-23 Thread Oleg Nesterov
On 04/22, Rafael J. Wysocki wrote: > > Move all of the freezer-related flags to a separate field in task_struct and > introduce functions to operate them using set_bit() etc. > > [...snip...] > > --- linux-2.6.21-rc6-mm1.orig/kernel/fork.c 2007-04-22 19:37:42.0 > +0200 > +++

Re: [1/3] 2.6.21-rc7: known regressions (v2)

2007-04-23 Thread Greg KH
On Mon, Apr 23, 2007 at 11:48:47PM +0200, Adrian Bunk wrote: > This email lists some known regressions in Linus' tree compared to 2.6.20. > > If you find your name in the Cc header, you are either submitter of one > of the bugs, maintainer of an affectected subsystem or driver, a patch > of you

[RFC] another scheduler beater

2007-04-23 Thread Bill Davidsen
The small attached script does a nice job of showing animation glitches in the glxgears animation. I have run one set of tests, and will have several more tomorrow. I'm off to a poker game, and would like to let people draw their own conclusions. Based on just this script as load I would say

[REPORT] First "glitch1" results, 2.6.21-rc7-git6-CFSv5

2007-04-23 Thread Bill Davidsen
I am not sure a binary attachment will go thru, I will move to the web ste if not. GL2.6.21-rc7-git6-CFSv5_nice0_jump Description: Binary data GL2.6.21-rc7-git6-CFSv5_nice0_nojump Description: Binary data GL2.6.21-rc7-git6-CFSv5_nice19_nojump Description: Binary data

Re: Testing framework

2007-04-23 Thread Ric Wheeler
Avishay Traeger wrote: On Mon, 2007-04-23 at 02:16 +0530, Karuna sagar K wrote: For some time I had been working on this file system test framework. Now I have a implementation for the same and below is the explanation. Any comments are welcome. You may want to check out the paper "EXPLODE:

Re: [ANNOUNCE][PATCH] Kcli - Kernel command line interface.

2007-04-23 Thread H. Peter Anvin
Matt Ranon wrote: The Jem team is pleased to announce the release of Kcli, an in-kernel command line interface. Kcli is intended for a special class of embedded Linux applications. The Linux kernel has become the defacto standard OS for embedded applications. This means that Linux is getting bent

Re: sendfile to nonblocking socket

2007-04-23 Thread David Miller
From: voron <[EMAIL PROTECTED]> Date: Tue, 24 Apr 2007 00:13:27 +0300 > As I see, nonblocking mode is enabled - sendfile sends less than asked. The socket is marked as non-blocking, but the disk I/O is not. It's blocking on the disk I/O not the socket part of the operation. - To unsubscribe

Re: 2.6.21-rc7: BUG: sleeping function called from invalid context at net/core/sock.c:1523

2007-04-23 Thread Jiri Kosina
On Mon, 23 Apr 2007, Jeremy Fitzhardinge wrote: > I got this on resume; it looks like a Bluetooth and/or USB problem. > PM: Removing info for No Bus:hci0 > BUG: sleeping function called from invalid context at net/core/sock.c:1523 > in_atomic():1, irqs_disabled():0 > 1 lock held by khubd/180: >

Re: [REPORT] cfs-v4 vs sd-0.44

2007-04-23 Thread Guillaume Chazarain
2007/4/23, Ingo Molnar <[EMAIL PROTECTED]>: p->wait_runtime >>= 1; p_to->wait_runtime += p->wait_runtime; I have no problem with clients giving some credit to X, I am more concerned with X giving half of its credit to a single client, a quarter of its credit to

[3/3] 2.6.21-rc7: known regressions (v2)

2007-04-23 Thread Adrian Bunk
This email lists some known regressions in Linus' tree compared to 2.6.20. If you find your name in the Cc header, you are either submitter of one of the bugs, maintainer of an affectected subsystem or driver, a patch of you caused a breakage or I'm considering you in any other way possibly

[1/3] 2.6.21-rc7: known regressions (v2)

2007-04-23 Thread Adrian Bunk
This email lists some known regressions in Linus' tree compared to 2.6.20. If you find your name in the Cc header, you are either submitter of one of the bugs, maintainer of an affectected subsystem or driver, a patch of you caused a breakage or I'm considering you in any other way possibly

[2/3] 2.6.21-rc7: known regressions (v2)

2007-04-23 Thread Adrian Bunk
This email lists some known regressions in Linus' tree compared to 2.6.20. If you find your name in the Cc header, you are either submitter of one of the bugs, maintainer of an affectected subsystem or driver, a patch of you caused a breakage or I'm considering you in any other way possibly

sendfile to nonblocking socket

2007-04-23 Thread voron
Hello I'm testing a web server nginx for films sharing in my LAN. And I've got some interesting results. When I tried to download film or another big file via gigabit link, I've got sendfile block with nonblocking socket. Strace log in attach. Some commens #enabling nonblock on fd 3

Re: SATA SB600 works in 2.6.20.4 but not in 2.6.21-rc5 with irqpoll parameter

2007-04-23 Thread Karsten Vieth
I can't report this problem from a new kernel, but i have the same problem with the kernel 2.6.20.1-33x from f7-test3. I managed to boot with these options: linux noapic acpi=off pci=nomsi irqpoll Here is my lspci -tv -[:00]-+-00.0 ATI Technologies Inc Radeon Xpress 200 Host Bridge

[ANNOUNCE][PATCH] Kcli - Kernel command line interface.

2007-04-23 Thread Matt Ranon
The Jem team is pleased to announce the release of Kcli, an in-kernel command line interface. Kcli is intended for a special class of embedded Linux applications. The Linux kernel has become the defacto standard OS for embedded applications. This means that Linux is getting bent in some ways

Re: Pagecache: find_or_create_page does not call a proper page allocator function

2007-04-23 Thread Christoph Lameter
On Mon, 23 Apr 2007, Andrew Morton wrote: > > +static inline struct page *page_cache_alloc_mask(struct address_space *x, > > + gfp_t gfp) > > +{ > > + return __page_cache_alloc(mapping_gfp_mask(x) | gfp); > > +} > > Usually we use the term "mask" to imply an AND function, not

Re: Pagecache: find_or_create_page does not call a proper page allocator function

2007-04-23 Thread Andrew Morton
On Mon, 23 Apr 2007 14:11:57 -0700 (PDT) Christoph Lameter <[EMAIL PROTECTED]> wrote: > The find_or_create function calls alloc_page with a local gfp mask instead > of using page_cache_alloc. This means that the page allocation will not > obey cpuset memory spreading and page allocation will not

Re: [RFC][PATCH -mm 3/3] freezer: Fix problem with kthread_stop

2007-04-23 Thread Rafael J. Wysocki
On Monday, 23 April 2007 23:16, Gautham R Shenoy wrote: > On Tue, Apr 24, 2007 at 12:46:37AM +0400, Oleg Nesterov wrote: > > On 04/23, Rafael J. Wysocki wrote: > > > > > > On Monday, 23 April 2007 14:35, Gautham R Shenoy wrote: > > > > > + if (!freezer_should_exempt(current)) { > > > >

[git patch] IDE fix for 2.6.21-final (Revert "adjust legacy IDE resource setting (v2)")

2007-04-23 Thread Bartlomiej Zolnierkiewicz
Please pull from: master.kernel.org:/pub/scm/linux/kernel/git/bart/ide-2.6.git/ to receive the following updates: drivers/pci/probe.c | 45 + 1 files changed, 13 insertions(+), 32 deletions(-) commit 01abc2aa0f447bce2f6beb06dd0607ba0f01c5bb

Re: [RFC][PATCH -mm 3/3] freezer: Fix problem with kthread_stop

2007-04-23 Thread Gautham R Shenoy
On Tue, Apr 24, 2007 at 12:46:37AM +0400, Oleg Nesterov wrote: > On 04/23, Rafael J. Wysocki wrote: > > > > On Monday, 23 April 2007 14:35, Gautham R Shenoy wrote: > > > > + if (!freezer_should_exempt(current)) { > > > task_lock(k); > > > > + /* We are freezable, so

Re: [RFC][PATCH] ChunkFS: fs fission for faster fsck

2007-04-23 Thread Amit Gud
Suparna Bhattacharya wrote: Could you send this out as a patch to ext2 codebase, so we can just look at the changes for chunkfs ? That might also make it small enough to inline your patch in email for review. What kind of results are you planning to gather to evaluate/optimize this ?

Re: [PATCH][RFC] PCMCIA support for 8xx using platform devices

2007-04-23 Thread Segher Boessenkool
That's a horrible argument. Please do it properly, and let arch/ppc die as it should. We shouldn't be adding anything to it anymore anyway. I understand your point, but we shouldn't trash existing bits either. Why not? The things that haven't been ported over yet obviously are

Pagecache: find_or_create_page does not call a proper page allocator function

2007-04-23 Thread Christoph Lameter
The find_or_create function calls alloc_page with a local gfp mask instead of using page_cache_alloc. This means that the page allocation will not obey cpuset memory spreading and page allocation will not properly use the gfp flags in the address space. Highmem is not set correctly. It turns out

Re: [REPORT] cfs-v4 vs sd-0.44

2007-04-23 Thread Ingo Molnar
* Ingo Molnar <[EMAIL PROTECTED]> wrote: > sorry, i was a bit imprecise here. There is a case where CFS can give > out a 'loan' to tasks. The scheduler tick has a low resolution, so it > is fundamentally inevitable [*] that tasks will run a bit more than > they should, and at a heavy

Re: [ANNOUNCE] UidBind LSM 0.1

2007-04-23 Thread Roberto De Ioris
Il giorno lun, 23/04/2007 alle 14.38 -0400, Gerhard Mack ha scritto: > On Mon, 23 Apr 2007, Roberto De Ioris wrote: > > Hi all, > > this is a very simple module that allows bind() to tcp/udp port (>=1024) > > only for the uids defined in a configfs tree. > > > > It is a first version, it only

Re: [report] renicing X, cfs-v5 vs sd-0.46

2007-04-23 Thread Michael K. Edwards
On 4/23/07, Ingo Molnar <[EMAIL PROTECTED]> wrote: Basically this hack is bad on policy grounds because it is giving X an "legislated, unfair monopoly" on the system. It's the equivalent of a state-guaranteed monopoly in certain 'strategic industries'. It has some advantages but it is very much

[patch -mm v2] cpusets: allow TIF_MEMDIE threads to allocate anywhere

2007-04-23 Thread David Rientjes
OOM killed tasks have access to memory reserves as specified by the TIF_MEMDIE flag in the hopes that it will quickly exit. If such a task has memory allocations constrained by cpusets, we may encounter a deadlock if a blocking task cannot exit because it cannot allocate the necessary memory. We

Re: ChunkFS - measuring cross-chunk references

2007-04-23 Thread Andreas Dilger
On Apr 23, 2007 15:04 +0530, Kalpak Shah wrote: > On Mon, 2007-04-23 at 12:49 +0530, Karuna sagar K wrote: > > The tool estimates the cross-chunk references from an extt2/3 file > > system. It considers a block group as one chunk and calcuates how many > > block groups does a file span across.

Re: SLUB: kmem_cache_destroy doesn't - version 2.

2007-04-23 Thread Christoph Lameter
Would this work? Contains a solution somewhat along the lines of your thoughts on the subject. SLAB: Fix sysfs directory handling This fixes the problem that SLUB does not track the names of aliased slabs by changing the way that SLUB manages the files in /sys/slab. If the slab that is being

Re: [PATCH] powerpc pseries eeh: Convert to kthread API

2007-04-23 Thread Linas Vepstas
On Sun, Apr 22, 2007 at 01:31:55PM +0100, Christoph Hellwig wrote: > On Thu, Apr 19, 2007 at 01:58:45AM -0600, Eric W. Biederman wrote: > > From: Eric W. Biederman <[EMAIL PROTECTED]> > > > > This patch modifies the startup of eehd to use kthread_run > > not a combination of kernel_thread and

Re: [RFC][PATCH -mm 3/3] freezer: Fix problem with kthread_stop

2007-04-23 Thread Oleg Nesterov
On 04/23, Rafael J. Wysocki wrote: > > On Monday, 23 April 2007 14:35, Gautham R Shenoy wrote: > > > + if (!freezer_should_exempt(current)) { > > task_lock(k); > > > + /* We are freezable, so we must make sure that the thread being > > > + * stopped is not frozen and

2.6.21-rc7: BUG: sleeping function called from invalid context at net/core/sock.c:1523

2007-04-23 Thread Jeremy Fitzhardinge
I got this on resume; it looks like a Bluetooth and/or USB problem. PM: Removing info for No Bus:hci0 BUG: sleeping function called from invalid context at net/core/sock.c:1523 in_atomic():1, irqs_disabled():0 1 lock held by khubd/180: #0: (old_style_rw_init#2){-.-?}, at: []

Re: [PATCH] dma_declare_coherent_memory wrong allocation

2007-04-23 Thread Guennadi Liakhovetski
On Mon, 23 Apr 2007, James Bottomley wrote: > On Mon, 2007-04-23 at 00:45 +0200, Guennadi Liakhovetski wrote: > > Right, thinko. How about using his: > > > > + int pages = DIV_ROUND_UP(size, PAGE_SIZE); > > Actually, no ... this has to be size >> PAGE_SHIFT. The reason being > that the

Re: [REPORT] cfs-v4 vs sd-0.44

2007-04-23 Thread Ingo Molnar
* Ingo Molnar <[EMAIL PROTECTED]> wrote: > (we obviously dont want to allow people to 'share' their loans with > others ;), nor do we want to allow a net negative balance. CFS is > really brutally cold-hearted, it has a strict 'no loans' policy - the > easiest economic way to manage

Re: [PATCH 10/28] i386: map enough initial memory to create lowmem mappings

2007-04-23 Thread H. Peter Anvin
Eric W. Biederman wrote: Jeremy Fitzhardinge <[EMAIL PROTECTED]> writes: H. Peter Anvin wrote: It would be *trivial* to make a certain number of page table slots available at the end of the head.S-generated map. Or you could use a fixmap. That certain number of page table slots should be

Re: [RFC PATCH(experimental) 2/2] Fix freezer-kthread_stop race

2007-04-23 Thread Gautham R Shenoy
On Mon, Apr 23, 2007 at 10:39:56PM +0400, Oleg Nesterov wrote: > On 04/23, Gautham R Shenoy wrote: > > > > On Sat, Apr 21, 2007 at 01:12:09AM +0400, Oleg Nesterov wrote: > > > On 04/19, Gautham R Shenoy wrote: > > > > > > > > @@ -63,12 +74,16 @@ void refrigerator(void) > > > >

Re: [REPORT] cfs-v4 vs sd-0.44

2007-04-23 Thread Ingo Molnar
* Linus Torvalds <[EMAIL PROTECTED]> wrote: > > The "give scheduler money" transaction can be both an "implicit > > transaction" (for example when writing to UNIX domain sockets or > > blocking on a pipe, etc.), or it could be an "explicit transaction": > > sched_yield_to(). This latter i've

Re: serial8250 lockdep report from 2.6.21-rc7

2007-04-23 Thread Jiri Kosina
On Mon, 23 Apr 2007, Dave Jones wrote: > = > [ INFO: inconsistent lock state ] > 2.6.20-1.3094.fc7 #1 > - > inconsistent {hardirq-on-W} -> {in-hardirq-W} usage. > swapper/0 [HC1[1]:SC0[0]:HE0:SE1] takes: > (_lock_key){++..}, at: []

Re: [REPORT] cfs-v4 vs sd-0.44

2007-04-23 Thread Linus Torvalds
On Mon, 23 Apr 2007, Ingo Molnar wrote: > > The "give scheduler money" transaction can be both an "implicit > transaction" (for example when writing to UNIX domain sockets or > blocking on a pipe, etc.), or it could be an "explicit transaction": > sched_yield_to(). This latter i've already

Re: [REPORT] cfs-v4 vs sd-0.44

2007-04-23 Thread Willy Tarreau
Hi ! On Mon, Apr 23, 2007 at 09:11:43PM +0200, Ingo Molnar wrote: > > * Linus Torvalds <[EMAIL PROTECTED]> wrote: > > > but the point I'm trying to make is that X shouldn't get more CPU-time > > because it's "more important" (it's not: and as noted earlier, > > thinking that it's more

Re: [RFC][PATCH -mm 3/3] freezer: Fix problem with kthread_stop

2007-04-23 Thread Rafael J. Wysocki
On Monday, 23 April 2007 21:03, Oleg Nesterov wrote: > On 04/23, Gautham R Shenoy wrote: > > > > On Sun, Apr 22, 2007 at 09:40:59PM +0200, Rafael J. Wysocki wrote: > > > /* > > > @@ -232,6 +233,14 @@ int kthread_stop(struct task_struct *k) > > > > > > /* Now set kthread_should_stop() to true,

Re: [RFC][PATCH -mm 2/3] freezer: Introduce freezer_flags

2007-04-23 Thread Rafael J. Wysocki
On Monday, 23 April 2007 15:17, Gautham R Shenoy wrote: > On Sun, Apr 22, 2007 at 09:39:26PM +0200, Rafael J. Wysocki wrote: > > @@ -63,9 +100,9 @@ static inline int thaw_process(struct ta > > */ > > static inline void frozen_process(struct task_struct *p) > > { > > - p->flags |= PF_FROZEN;

Re: [patch -mm] cpusets: allow TIF_MEMDIE threads to allocate anywhere

2007-04-23 Thread Andi Kleen
> +/* > + * Allow tasks that have access to memory reserves because they have > + * been OOM killed to get memory anywhere. > + */ > +if (unlikely(test_tsk_thread_flag(current, TIF_MEMDIE))) This should be test_thread_flag() -Andi - To unsubscribe from

Re: [RFC][PATCH -mm 3/3] freezer: Fix problem with kthread_stop

2007-04-23 Thread Rafael J. Wysocki
Hi, On Monday, 23 April 2007 12:40, Pavel Machek wrote: > Hi! > > > Fix the problem with kthread_stop() that causes the freezer to fail if a > > freezable thread is attempting to stop a frozen one and that may cause the > > freezer to fail if the thread being stopped is freezable and > >

<    1   2   3   4   5   6   7   8   9   >