Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree

2007-05-08 Thread Matt Mackall
On Tue, May 08, 2007 at 06:32:35PM -0700, Christoph Lameter wrote: > On Tue, 8 May 2007, Matt Mackall wrote: > > > On Tue, May 08, 2007 at 05:51:27PM -0700, Christoph Lameter wrote: > > > On Tue, 8 May 2007, Matt Mackall wrote: > > > > > > > First, SL

Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree

2007-05-08 Thread Matt Mackall
On Tue, May 08, 2007 at 05:51:27PM -0700, Christoph Lameter wrote: > On Tue, 8 May 2007, Matt Mackall wrote: > > > First, SLOB no longer runs on SMP because SLAB grew some RCU-related > > hair. So it now effectively has no locks at all! > > Well it seems that SLOB was

Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree

2007-05-08 Thread Matt Mackall
On Wed, May 09, 2007 at 01:32:20AM +0100, Alan Cox wrote: > > (without SLAB emulation) and fragmentation was not the driving force > > for replacement. Small Linux 1.x machines frequently had uptimes of 1+ > > years without fragmenting to death. Instead, it was performance with > > 8MB for a bit o

Re: + fix-spellings-of-slab-allocator-section-in-init-kconfig.patch added to -mm tree

2007-05-08 Thread Matt Mackall
On Tue, May 08, 2007 at 04:02:20PM -0700, [EMAIL PROTECTED] wrote: > bool "SLOB (Simple Allocator)" > help > SLOB replaces the SLAB allocator with a drastically simpler > allocator. SLOB is more space efficient that SLAB but does not > -scale well (single lock

Re: [PATCH][RFC] Create a top-level "Space-critical features" menu.

2007-05-08 Thread Matt Mackall
On Tue, May 08, 2007 at 04:41:58AM -0400, Robert P. J. Day wrote: > On Tue, 8 May 2007, Thomas Gleixner wrote: > > > On Tue, 2007-05-08 at 04:06 -0400, Robert P. J. Day wrote: > > > i've always hated that lower-level menu under "General setup": > > > > Good reason to break everything which depen

Re: [PATCH][RFC] Create a top-level "Space-critical features" menu.

2007-05-08 Thread Matt Mackall
On Tue, May 08, 2007 at 04:06:30AM -0400, Robert P. J. Day wrote: > > i've always hated that lower-level menu under "General setup": > > Configure standard kernel features (for small systems) ---> > > which buries the choice of de-selecting features to save space one > level down without real

Re: Please pull 'revert-libertas' branch of wireless-2.6 (was Re: Please pull 'libertas' branch of wireless-2.6)

2007-05-07 Thread Matt Mackall
On Mon, May 07, 2007 at 11:22:34AM -0400, Jeff Garzik wrote: > John W. Linville wrote: > >On Mon, May 07, 2007 at 08:03:43AM -0400, Dan Williams wrote: > >>On Mon, 2007-05-07 at 11:41 +0100, Christoph Hellwig wrote: > > > >>>Of course it's not anywhere near good shape. Almost all items from my > >

Re: [patch] CFS scheduler, -v8

2007-05-07 Thread Matt Mackall
On Mon, May 07, 2007 at 09:28:32AM -0700, Linus Torvalds wrote: > > > On Mon, 7 May 2007, Esben Nielsen wrote: > > > > What is (long)(a-b) ? I have tried to look it up in the C99 standeard but I > > can't find it. Maybe it is in the referred LIA-1 standeard, which I can't > > find > > with goog

Re: [RELEASE] Lguest for 2.6.21

2007-05-03 Thread Matt Mackall
On Fri, May 04, 2007 at 10:43:09AM +1000, Rusty Russell wrote: > On Fri, 2007-05-04 at 10:13 +1000, Rusty Russell wrote: > > On Thu, 2007-05-03 at 11:02 -0500, Matt Mackall wrote: > > > On Thu, May 03, 2007 at 12:43:48AM +1000, Rusty Russell wrote: > > > > h

Re: [RELEASE] Lguest for 2.6.21

2007-05-03 Thread Matt Mackall
On Thu, May 03, 2007 at 12:43:48AM +1000, Rusty Russell wrote: > Hi all, > > Lguest is a simple hypervisor which runs Linux under Linux, without > needing VT hardware. > > Two people asked if I had a version of lguest which worked on > other-than-bleeding-edge-mm kernels, so I did a b

Re: [2/6] add config option to vmalloc stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)

2007-05-01 Thread Matt Mackall
ay: > >> patch 1: dynamic allocated irq stacks > > On Tue, May 01, 2007 at 05:36:06PM -0500, Matt Mackall wrote: > > Can we register them lazily at request_irq time? > > These IRQ stacks are per-cpu, not per-IRQ. It may make sense to > implement per-IRQ stacks, in wh

Re: [2/6] add config option to vmalloc stacks (was: Re: [-mm patch] i386: enable 4k stacks by default)

2007-05-01 Thread Matt Mackall
On Mon, Apr 30, 2007 at 08:15:11PM +0100, Christoph Hellwig wrote: > So if you want to invest some time into getting this into mergeable > shape I'd suggest you redo the patch series in the following way: > > patch 1: dynamic allocated irq stacks Can we register them lazily at request_irq time?

Re: [PATCH] fix dynticks for voyager

2007-05-01 Thread Matt Mackall
On Mon, Apr 30, 2007 at 11:38:51AM -0500, James Bottomley wrote: > As usual voyager tripped over an explicit boot CPU is zero assumption in > the dynticks code. This is the fix I have queued in the voyager tree. Can we flush out all these assumptions by adding a constant offset somewhere? Or reve

Re: [GIT PATCH] ACPI patches for 2.6.22

2007-04-30 Thread Matt Mackall
On Mon, Apr 30, 2007 at 11:31:42PM +0200, Rafael J. Wysocki wrote: > Can you please do 'echo shutdown > /sys/power/disk' before the hibernation > and see what happens? Do I need to reboot for this test? Same behavior without a reboot. -- Mathematics is the supreme nostalgia of our time. - To un

Re: [GIT PATCH] ACPI patches for 2.6.22

2007-04-30 Thread Matt Mackall
On Mon, Apr 30, 2007 at 10:03:30PM +0200, Rafael J. Wysocki wrote: > > > > > These are older and might have been fixed: > > > > > > > > > > - Mat Mackall's "Thinkpads not waking up on lid open with -rc6-mm1" > > > > > > > > This seems to be related to suspend to disk. After the first suspend > >

Re: [GIT PATCH] ACPI patches for 2.6.22

2007-04-30 Thread Matt Mackall
On Sun, Apr 29, 2007 at 02:17:01PM +0200, Rafael J. Wysocki wrote: > On Sunday, 29 April 2007 13:52, Matt Mackall wrote: > > On Sun, Apr 29, 2007 at 01:01:04AM -0700, Andrew Morton wrote: > > > On Sun, 29 Apr 2007 01:02:33 -0400 Len Brown <[EMAIL PROTECTED]> wrote: > &g

Re: checkpatch, a patch checking script.

2007-04-29 Thread Matt Mackall
On Sun, Apr 29, 2007 at 05:18:00PM -0700, Randy Dunlap wrote: > Matt Mackall wrote: > >On Sun, Apr 29, 2007 at 04:37:01PM -0700, Randy Dunlap wrote: > >>On Sat, 28 Apr 2007 12:21:54 -0500 Matt Mackall wrote: > >> > >>>On Sat, Apr 28, 2007 at 01:11:01PM -0400,

Re: checkpatch, a patch checking script.

2007-04-29 Thread Matt Mackall
On Sun, Apr 29, 2007 at 04:37:01PM -0700, Randy Dunlap wrote: > On Sat, 28 Apr 2007 12:21:54 -0500 Matt Mackall wrote: > > > On Sat, Apr 28, 2007 at 01:11:01PM -0400, Dave Jones wrote: > > > On Sat, Apr 28, 2007 at 11:11:36AM -0500, Matt Mackall wrote: > > > &

Re: [00/17] Large Blocksize Support V3

2007-04-29 Thread Matt Mackall
On Thu, Apr 26, 2007 at 02:28:46PM +0100, Alan Cox wrote: > > > Oh we have scores of these hacks around. Look at the dvd/cd layer. The > > > point is to get rid of those. > > > > Perhaps this is just a matter of cleaning them up so they are no > > longer hacks? > > CD and DVD media support vario

Re: [GIT PATCH] ACPI patches for 2.6.22

2007-04-29 Thread Matt Mackall
On Sun, Apr 29, 2007 at 01:01:04AM -0700, Andrew Morton wrote: > On Sun, 29 Apr 2007 01:02:33 -0400 Len Brown <[EMAIL PROTECTED]> wrote: > > > please pull from: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6.git > > release > > > > This batch mostly updates the platf

Re: [PATCH] slob: fix page order calculation on not 4KB page

2007-04-29 Thread Matt Mackall
e of a magic number. > Cc: Matt Mackall <[EMAIL PROTECTED]> > Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]> Acked-by: Matt Mackal <[EMAIL PROTECTED]> -- Mathematics is the supreme nostalgia of our time. - To unsubscribe from this list: send the line "unsubscribe

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

2007-04-28 Thread Matt Mackall
On Mon, Apr 23, 2007 at 06:12:19PM -0700, Matt Ranon wrote: > However, our reasons for Kcli are: > 1) Our devices ship with no user space, and we want the development > environment to be as close as possible to the final product. I hope that means your devices have full source code available under

Re: checkpatch, a patch checking script.

2007-04-28 Thread Matt Mackall
On Sat, Apr 28, 2007 at 01:11:01PM -0400, Dave Jones wrote: > On Sat, Apr 28, 2007 at 11:11:36AM -0500, Matt Mackall wrote: > > > I'm all ears for additional regexps, bug reports or other suggestions. > > > > Neat. > > > > Does it check for: > &

Re: [PATCH] deflate inflate_dynamic too

2007-04-28 Thread Matt Mackall
On Fri, Apr 27, 2007 at 07:20:07PM -0700, Jeremy Fitzhardinge wrote: > inflate_dynamic() has piggy stack usage too, so heap allocate it too. > I'm not sure it actually gets used, but it shows up large in "make > checkstack". Might as well drop the PKZIP bit while we're at it. No one's ever built a

Re: checkpatch, a patch checking script.

2007-04-28 Thread Matt Mackall
On Fri, Apr 27, 2007 at 11:08:05PM -0400, Dave Jones wrote: > On Wed, Apr 25, 2007 at 08:02:07PM -0700, Andrew Morton wrote: > > > > Yep, I was going to mention your scripts but you beat me to it. > > > > > > I'll be glad to help maintain such animals if wanted. > > > > > wanted ;) > > >

Re: ZFS with Linux: An Open Plea

2007-04-27 Thread Matt Mackall
On Thu, Apr 26, 2007 at 10:21:02PM -0700, Valerie Henson wrote: > On Wed, Apr 18, 2007 at 01:25:19PM -0400, Lennart Sorensen wrote: > > > > Does it matter that google's recent report on disk failures indicated > > that SMART never predicted anything useful as far as they could tell? > > Certainly

Re: - maps2-add-proc-pid-pagemap-interface-fix.patch removed from -mm tree

2007-04-27 Thread Matt Mackall
On Fri, Apr 27, 2007 at 01:27:13PM -0700, Andrew Morton wrote: > On Fri, 27 Apr 2007 14:45:33 +0400 > Alexey Dobriyan <[EMAIL PROTECTED]> wrote: > > > > maps2-add-proc-pid-pagemap-interface.patch > > > > Ohhh, you're repeating december mincore() bug > > 2f77d107050abc14bc393b34bdb7b91cf670c250 >

Re: suspend2 merge (was Re: [Suspend2-devel] Re: CFS and suspend2: hang in atomic copy)

2007-04-25 Thread Matt Mackall
On Tue, Apr 24, 2007 at 11:29:56PM +0200, Pavel Machek wrote: > We do not want to fragment the testing base, and suspend2 does not > really have any interesting features over uswsusp. The testing base is already fragmented! What the current situation means is that you simply never hear from the p

Re: [RFC 4/8] Enhance fallback functions in libs to support higher order pages

2007-04-24 Thread Matt Mackall
On Fri, Apr 20, 2007 at 12:10:43PM -0700, Christoph Lameter wrote: > On Fri, 20 Apr 2007, Dave Kleikamp wrote: > > > On Fri, 2007-04-20 at 12:05 +0100, Mel Gorman wrote: > > > > > comments about missing page_cache_size() covered elsewhere. However, I > > > note that Dave Kleikamp might be interes

Re: Renice X for cpu schedulers

2007-04-24 Thread Matt Mackall
On Tue, Apr 24, 2007 at 08:50:20AM -0700, Ray Lee wrote: > > Firstly, lots of clients in your list are remote. X usually isn't. > > They really aren't, unless you happen to work somewhere that can afford > to dedicate a box to a db, which suddenly makes the scheduler a dull > topic. > > For examp

Re: [RFC][PATCH -mm take4 2/6] support multiple logging

2007-04-20 Thread Matt Mackall
On Fri, Apr 20, 2007 at 11:15:26AM -0700, Andrew Morton wrote: > On Fri, 20 Apr 2007 18:51:13 +0900 > Keiichi KII <[EMAIL PROTECTED]> wrote: > > > > I started to do some cleanups and fixups here, but abandoned it when it > > > was > > > all getting a bit large. > > > > > > Here are some fixes ag

Re: [patch 20/20] Add apply_to_page_range() which applies a function to a pte range.

2007-04-19 Thread Matt Mackall
On Thu, Apr 19, 2007 at 02:37:53PM -0700, Jeremy Fitzhardinge wrote: > Matt Mackall wrote: > > Haven't thought a huge amount about that. Perhaps it's best done with > > the level 3 callback? > > > > Level 2, I think, assuming you count the pte pages as lev

Re: [PATCH 13/13] maps#2: Add /proc/kpagemap interface

2007-04-19 Thread Matt Mackall
On Thu, Apr 19, 2007 at 12:06:38PM -0700, Dave Hansen wrote: > On Fri, 2007-04-06 at 17:03 -0500, Matt Mackall wrote: > > > > +static ssize_t kpagemap_read(struct file *file, char __user *buf, > > +size_t count, loff_t *ppos) > > +{ > ..

Re: [patch 20/20] Add apply_to_page_range() which applies a function to a pte range.

2007-04-19 Thread Matt Mackall
On Thu, Apr 19, 2007 at 12:44:57PM -0700, Jeremy Fitzhardinge wrote: > Matt Mackall wrote: > > I think adding a flags field and an allocate flag to my callback > > struct would be sufficient here. > > > > Yes, probably. > > What about something that want

Re: [PATCH 12/13] maps#2: Add /proc/pid/pagemap interface

2007-04-19 Thread Matt Mackall
On Thu, Apr 19, 2007 at 12:12:29PM -0700, Dave Hansen wrote: > On Fri, 2007-04-06 at 17:03 -0500, Matt Mackall wrote: > > > > +static int pagemap_pte_range(pmd_t *pmd, unsigned long addr, unsigned > > long end, > > +void *private) > >

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-18 Thread Matt Mackall
On Wed, Apr 18, 2007 at 07:48:21AM -0700, Linus Torvalds wrote: > And "fairness by euid" is probably a hell of a lot easier to do than > trying to figure out the wakeup matrix. For the record, you actually don't need to track a whole NxN matrix (or do the implied O(n**3) matrix inversion!) to get

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-18 Thread Matt Mackall
On Wed, Apr 18, 2007 at 08:37:11AM +0200, Nick Piggin wrote: > I don't know how that supports your argument for unfairness, I never had such an argument. I like fairness. My argument is that -you- don't have an argument for making fairness a -requirement-. > processes are special only because th

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-17 Thread Matt Mackall
On Wed, Apr 18, 2007 at 07:00:24AM +0200, Nick Piggin wrote: > > It's also not yet clear that a scheduler can't be taught to do the > > right thing with X without fiddling with nice levels. > > Being fair doesn't prevent that. Implicit unfairness is wrong though, > because it will bite people. >

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-17 Thread Matt Mackall
On Wed, Apr 18, 2007 at 05:15:11AM +0200, Nick Piggin wrote: > On Tue, Apr 17, 2007 at 04:39:54PM -0500, Matt Mackall wrote: > > On Tue, Apr 17, 2007 at 09:01:55AM +0200, Nick Piggin wrote: > > > On Mon, Apr 16, 2007 at 11:26:21PM -0700, William Lee Irwin III wrote: > > >

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-17 Thread Matt Mackall
On Wed, Apr 18, 2007 at 09:23:42AM +1000, Peter Williams wrote: > Matt Mackall wrote: > >On Tue, Apr 17, 2007 at 09:01:55AM +0200, Nick Piggin wrote: > >>On Mon, Apr 16, 2007 at 11:26:21PM -0700, William Lee Irwin III wrote: > >>>On Mon, Apr 16, 2007 at 11:09:55P

Re: slab allocators: Remove obsolete SLAB_MUST_HWCACHE_ALIGN

2007-04-17 Thread Matt Mackall
s was needed by SLOB to boot on x86, I wonder when that changed? But if SLAB is using the other define now, I'm happy to switch. > Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> -- Mathematics is the supreme nost

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-17 Thread Matt Mackall
suggested in other emails) > >> until others start saying they want something different and agree. > > On Tue, Apr 17, 2007 at 05:39:09PM -0500, Matt Mackall wrote: > > Good. This has a couple nice mathematical properties, including > > "bounded unfairness" which

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-17 Thread Matt Mackall
! > > On Tue, Apr 17, 2007 at 05:08:09PM -0500, Matt Mackall wrote: > > How's this: > > If you're running two identical CPU hog tasks A and B differing only by nice > > level (Anice, Bnice), the ratio cputime(A)/cputime(B) should be a > > constant f(Anice -

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-17 Thread Matt Mackall
On Tue, Apr 17, 2007 at 11:24:22AM +0200, Ingo Molnar wrote: > > * William Lee Irwin III <[EMAIL PROTECTED]> wrote: > > > [...] Also rest assured that the tone of the critique is not hostile, > > and wasn't meant to sound that way. > > ok :) (And i guess i was too touchy - sorry about coming ou

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-17 Thread Matt Mackall
On Tue, Apr 17, 2007 at 09:01:55AM +0200, Nick Piggin wrote: > On Mon, Apr 16, 2007 at 11:26:21PM -0700, William Lee Irwin III wrote: > > On Mon, Apr 16, 2007 at 11:09:55PM -0700, William Lee Irwin III wrote: > > >> All things are not equal; they all have different properties. I like > > > > On Tu

Re: [patch 20/20] Add apply_to_page_range() which applies a function to a pte range.

2007-04-17 Thread Matt Mackall
On Wed, Apr 04, 2007 at 11:52:57PM -0700, Jeremy Fitzhardinge wrote: > Matt Mackall wrote: > >> +/* > >> + * Scan a region of virtual memory, filling in page tables as necessary > >> + * and calling a provided function on each leaf page table. > >> + */ >

Re: [PATCH 6/13] maps#2: Move the page walker code to lib/

2007-04-17 Thread Matt Mackall
On Wed, Apr 11, 2007 at 04:35:44PM +1000, Nick Piggin wrote: > Matt Mackall wrote: > >Move the page walker code to lib/ > > > >This lets it get shared outside of proc/ and linked in only when > >needed. > > Still should go into mm/ > > If it had, you

Thinkpads not waking up on lid open with -rc6-mm1

2007-04-17 Thread Matt Mackall
Both my T30 and R51 aren't waking up when I open the lid any more. I have to hold down the power button for a moment. On my R51, I see this: $ cat /proc/acpi/wakeup Device S-state Status Sysfs node LID S3*enabled SLPB S3*enabled PCI0 S3 disabled no-bus:pci:00

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-17 Thread Matt Mackall
On Tue, Apr 17, 2007 at 05:31:20AM +0200, Nick Piggin wrote: > On Mon, Apr 16, 2007 at 09:28:24AM -0500, Matt Mackall wrote: > > On Mon, Apr 16, 2007 at 05:03:49AM +0200, Nick Piggin wrote: > > > I'd prefer if we kept a single CPU scheduler in mainline, because I >

Re: [BUG] netconsole hangs machine 2.6.20

2007-04-16 Thread Matt Mackall
[cc:ed to netdev] On Sun, Apr 15, 2007 at 10:45:37PM -0700, Mike Mattie wrote: > Hello, > > netconsole is hanging my box during IDE init. > > I am running 2.6.20.7, config is attached from /proc > > Without using netconsole the kernel boots fine. I am writing this message > from it. > > When

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-16 Thread Matt Mackall
On Mon, Apr 16, 2007 at 05:03:49AM +0200, Nick Piggin wrote: > I'd prefer if we kept a single CPU scheduler in mainline, because I > think that simplifies analysis and focuses testing. I think you'll find something like 80-90% of the testing will be done on the default choice, even if other choice

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-15 Thread Matt Mackall
On Sun, Apr 15, 2007 at 10:48:24PM +0200, Ingo Molnar wrote: > > * Matt Mackall <[EMAIL PROTECTED]> wrote: > > > Look at what happened with I/O scheduling. Opening things up to some > > new ideas by making it possible to select your I/O scheduler took us > &g

Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

2007-04-15 Thread Matt Mackall
On Sun, Apr 15, 2007 at 05:05:36PM +0200, Ingo Molnar wrote: > so the rejection was on these grounds, and i still very much stand by > that position here and today: i didnt want to see the Linux scheduler > landscape balkanized and i saw no technological reasons for the > complication that exter

Re: [PATCH UPDATE] deflate stack usage in lib/inflate.c

2007-04-13 Thread Matt Mackall
On Thu, Apr 12, 2007 at 01:50:54PM -0700, Jeremy Fitzhardinge wrote: > Subject: deflate stack usage in lib/inflate.c > > inflate_fixed and huft_build together use around 2.7k of stack. When > using 4k stacks, I saw stack overflows from interrupts arriving while > unpacking the root initrd: > > d

Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

2007-04-13 Thread Matt Mackall
On Fri, Apr 13, 2007 at 10:03:56AM -0700, Andrew Morton wrote: > On Fri, 13 Apr 2007 11:24:36 -0500 Matt Mackall <[EMAIL PROTECTED]> wrote: > > > > It *will* be viable. If the application wants to know if a page is dirty, > > > it looks up "PG_dirty&quo

Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

2007-04-13 Thread Matt Mackall
On Fri, Apr 13, 2007 at 12:18:56PM +1000, Nick Piggin wrote: > Can't you just traverse arbitrary kernel data structures at a given point > in time, exactly like the /proc/ call is doing? Perhaps. My understanding is that you hook a kprobe to an event. An event is a particular instruction getting

Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

2007-04-13 Thread Matt Mackall
On Thu, Apr 12, 2007 at 05:42:01PM -0700, Andrew Morton wrote: > On Fri, 13 Apr 2007 10:15:24 +1000 Nick Piggin <[EMAIL PROTECTED]> wrote: > > > >>+ ((char *)page)[1] = PAGE_SHIFT; > > > > > > > > > OK. > > > > Shouldn't we just expose page size and endianness by other mea

Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

2007-04-12 Thread Matt Mackall
On Fri, Apr 13, 2007 at 12:21:25PM +1000, Nick Piggin wrote: > Matt Mackall wrote: > >On Fri, Apr 13, 2007 at 11:42:29AM +1000, Nick Piggin wrote: > > >>If kprobes is simply crappy and doesn't work properly for this, then I > >>could accept that. I'm not

Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

2007-04-12 Thread Matt Mackall
On Thu, Apr 12, 2007 at 06:57:23PM -0700, Andrew Morton wrote: > I guess one could generate an answer to the static question with systemtap, > by accumulating running counts across the application lifetime and then > snapshotting them. Sounds hard though. You'd have to do it from boot onward to g

Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

2007-04-12 Thread Matt Mackall
On Fri, Apr 13, 2007 at 11:42:29AM +1000, Nick Piggin wrote: > >Instead, one says "what pages are being used by my application", then, for > > That includes unmapped pagecache being used by my application, doesn't it? > Maybe that's too hard to do via /proc so we forget about it... It'd be really

Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

2007-04-12 Thread Matt Mackall
On Fri, Apr 13, 2007 at 11:01:41AM +1000, Nick Piggin wrote: > >Basically: to show what the hell's going on in the VM. > > kprobes / systemtap isn't good enough? It's not really a good match to the kprobes model. I'm not interested in events, per se. I don't want to need to know about every singl

Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

2007-04-12 Thread Matt Mackall
On Fri, Apr 13, 2007 at 10:15:24AM +1000, Nick Piggin wrote: > Andrew Morton wrote: > >On Thu, 12 Apr 2007 16:10:50 -0700 > >William Lee Irwin III <[EMAIL PROTECTED]> wrote: > > >>+ while (count > 0) { > >>+ chunk = min_t(size_t, count, PAGE_SIZE); > >>+ i = 0; >

Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

2007-04-12 Thread Matt Mackall
On Thu, Apr 12, 2007 at 04:32:35PM -0700, Andrew Morton wrote: > On Thu, 12 Apr 2007 16:10:50 -0700 > William Lee Irwin III <[EMAIL PROTECTED]> wrote: > > > On Tue, Apr 03, 2007 at 09:43:30PM -0500, Matt Mackall wrote: > > > This patch series introduces /proc/

Re: [PATCH UPDATE] deflate stack usage in lib/inflate.c

2007-04-12 Thread Matt Mackall
On Thu, Apr 12, 2007 at 03:57:48PM -0700, Jeremy Fitzhardinge wrote: > Matt Mackall wrote: > > On Thu, Apr 12, 2007 at 01:50:54PM -0700, Jeremy Fitzhardinge wrote: > > > >> -#define HEAP_SIZE 0x3000 > >> +#define HEAP_SIZE 0x4000 > &g

Re: [PATCH UPDATE] deflate stack usage in lib/inflate.c

2007-04-12 Thread Matt Mackall
On Thu, Apr 12, 2007 at 01:50:54PM -0700, Jeremy Fitzhardinge wrote: > -#define HEAP_SIZE 0x3000 > +#define HEAP_SIZE 0x4000 There are a bunch more of these that'll need fixing. -- Mathematics is the supreme nostalgia of our time. - To unsubscribe from this list: send the

Re: [PATCH 6/13] maps#2: Move the page walker code to lib/

2007-04-11 Thread Matt Mackall
On Wed, Apr 11, 2007 at 04:35:44PM +1000, Nick Piggin wrote: > Matt Mackall wrote: > >Move the page walker code to lib/ > > > >This lets it get shared outside of proc/ and linked in only when > >needed. > > Still should go into mm/ > > If it had, you

Re: [-mm patch] make struct proc_kpagemap static

2007-04-10 Thread Matt Mackall
es for inspecting process memory status > >... > > > This patch makes the needlessly global truct proc_kpagemap static. > > Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Acked-by: Matt Mackall <[EMAIL PROTECTED]> -- Mathematics is the supreme nostalgia of our time. - To unsubscr

Re: /proc/*/pagemap BUG: sleeping function called from invalid context

2007-04-10 Thread Matt Mackall
nabled, use double-buffering in pagemap to avoid calling copy_to_user while preemption is disabled. Tested on x86 with HIGHPTE with DEBUG_SPINLOCK_SLEEP and PROVE_LOCKING. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Inde

Re: Add a norecovery option to ext3/4?

2007-04-10 Thread Matt Mackall
On Tue, Apr 10, 2007 at 02:08:26PM +0200, Jörn Engel wrote: > On Tue, 10 April 2007 07:27:18 -0400, Theodore Tso wrote: > > > > I suppose what you could do is to read in the journal, and use it to > > create an remapping table so that when you want to read block #5126, > > and block number 5126 is

Re: init's children list is long and slows reaping children.

2007-04-10 Thread Matt Mackall
On Tue, Apr 10, 2007 at 03:05:56AM -0400, Jeff Garzik wrote: > Andrew Morton wrote: > >: root 3 0.0 0.0 0 0 ?S18:51 0:00 > >[watchdog/0] > > > >That's the softlockup detector. Confusingly named to look like a, err, > >watchdog. Could probably use keventd. > > I

Re: /proc/*/pagemap BUG: sleeping function called from invalid context

2007-04-09 Thread Matt Mackall
On Mon, Apr 09, 2007 at 12:25:54PM +0400, Alexey Dobriyan wrote: > After > cat /proc/self/pagemap > > BUG: sleeping function called from invalid context at > include/asm/uaccess.h:453 > in_atomic():1, irqs_disabled():0 > 1 lock held by cat/14183: > #0: (&mm->mmap_sem){}, at: [] pagema

Re: /proc/*/pagemap BUG: sleeping function called from invalid context

2007-04-09 Thread Matt Mackall
On Mon, Apr 09, 2007 at 12:25:54PM +0400, Alexey Dobriyan wrote: > After > cat /proc/self/pagemap > > BUG: sleeping function called from invalid context at > include/asm/uaccess.h:453 > in_atomic():1, irqs_disabled():0 > 1 lock held by cat/14183: > #0: (&mm->mmap_sem){}, at: [] pagema

Re: [PATCH] slob: handle SLAB_PANIC flag

2007-04-09 Thread Matt Mackall
On Mon, Apr 09, 2007 at 10:08:47PM +0900, Akinobu Mita wrote: > kmem_cache_create() for slob doesn't handle SLAB_PANIC. > > Cc: Matt Mackall <[EMAIL PROTECTED]> > Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]> > > --- > mm/slob.c |3 +++ > 1 file ch

Re: [PATCH 12/13] maps#2: Add /proc/pid/pagemap interface

2007-04-07 Thread Matt Mackall
On Fri, Apr 06, 2007 at 11:55:10PM -0700, Andrew Morton wrote: > On Fri, 06 Apr 2007 17:03:13 -0500 Matt Mackall <[EMAIL PROTECTED]> wrote: > > > Add /proc/pid/pagemap interface > > > > This interface provides a mapping for each page in an address space to >

[PATCH 4/13] maps#2: Propagate errors from callback in page walker

2007-04-06 Thread Matt Mackall
Propagate errors from callback in page walker Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task_mmu.c === --- mm.orig/fs/proc/task_mmu.c 2007-03-24 21:33:52.0 -0500 +++ mm/fs/proc/task_mmu.c

[PATCH 6/13] maps#2: Move the page walker code to lib/

2007-04-06 Thread Matt Mackall
Move the page walker code to lib/ This lets it get shared outside of proc/ and linked in only when needed. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task_mmu.c === --- mm.orig/fs/proc/task_mmu.c 2007

[PATCH 3/13] maps#2: Remove vma from args in the page walker

2007-04-06 Thread Matt Mackall
Remove vma from args in the page walker This makes the walker more generic. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task_mmu.c === --- mm.orig/fs/proc/task_mmu.c 2007-03-24 21:33:50.0 -0500

[PATCH 2/13] maps#2: Eliminate the pmd_walker struct in the page walker

2007-04-06 Thread Matt Mackall
Eliminate the pmd_walker struct in the page walker This slightly simplifies things for the next few cleanups. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task_mmu.c === --- mm.orig/fs/proc/task_mmu.c 2

[PATCH 5/13] maps#2: Add callbacks for each level to page walker

2007-04-06 Thread Matt Mackall
. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task_mmu.c === --- mm.orig/fs/proc/task_mmu.c 2007-03-24 21:33:58.0 -0500 +++ mm/fs/proc/task_mmu.c 2007-03-24 21:34:07.0 -0500 @@ -280,10 +

[PATCH 10/13] maps#2: Make /proc/pid/smaps optional under CONFIG_EMBEDDED

2007-04-06 Thread Matt Mackall
Make /proc/pid/smaps optional under CONFIG_EMBEDDED This interface is primarily useful for doing memory profiling and not much use on deployed embedded boxes. Make it optional. Together with /proc/pid/clear_refs, this save a few K. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index:

[PATCH 8/13] maps#2: Move clear_refs code to task_mmu.c

2007-04-06 Thread Matt Mackall
Move clear_refs code to task_mmu.c This puts all the clear_refs code where it belongs and probably lets things compile on MMU-less systems as well. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/

[PATCH 7/13] maps#2: Simplify interdependence of /proc/pid/maps and smaps

2007-04-06 Thread Matt Mackall
Simplify interdependence of /proc/pid/maps and smaps This pulls the shared map display code out of show_map and puts it in show_smap where it belongs. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task

[PATCH 9/13] maps#2: Regroup task_mmu by interface

2007-04-06 Thread Matt Mackall
Regroup task_mmu by interface Reorder source so that all the code and data for each interface is together. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task_mmu.c === --- mm.orig/fs/proc/task_mmu.c 2007

[PATCH 11/13] maps#2: Make /proc/pid/clear_refs option under CONFIG_EMBEDDED

2007-04-06 Thread Matt Mackall
Make /proc/pid/clear_refs option under CONFIG_EMBEDDED This interface is primarily useful for doing memory profiling and not much use on deployed embedded boxes. Make it optional. Together with /proc/pid/smaps, this save a few K. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/f

[PATCH 1/13] maps#2: Uninline some functions in the page walker

2007-04-06 Thread Matt Mackall
Uninline some functions in the page walker Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task_mmu.c === --- mm.orig/fs/proc/task_mmu.c 2007-03-24 21:33:42.0 -0500 +++ mm/fs/proc/task_mmu.c 2

[PATCH 13/13] maps#2: Add /proc/kpagemap interface

2007-04-06 Thread Matt Mackall
Add /proc/kpagemap interface This makes physical page flags and counts available to userspace. Together with /proc/pid/pagemap and /proc/pid/clear_refs, this can be used to measure memory usage on a per-page basis. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/proc_

[PATCH 12/13] maps#2: Add /proc/pid/pagemap interface

2007-04-06 Thread Matt Mackall
Add /proc/pid/pagemap interface This interface provides a mapping for each page in an address space to its physical page frame number, allowing precise determination of what pages are mapped and what pages are shared between processes. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Ind

[PATCH 0/13] maps#2: pagemap, kpagemap, and related cleanups take 2

2007-04-06 Thread Matt Mackall
This patch series introduces /proc/pid/pagemap and /proc/kpagemap, which allow detailed run-time examination of process memory usage at a page granularity. The first several patches whip the page-walking code introduced for /proc/pid/smaps and clear_refs into a more generic form, the next couple m

Re: [KJ][RFC]NAME_OFFSET macro

2007-04-06 Thread Matt Mackall
On Fri, Apr 06, 2007 at 02:28:13PM +0530, Milind Arun Choudhary wrote: > > [EMAIL PROTECTED]:~/src/linux> egrep -rin "#define.*NAME_?OFFSET" . > ./arch/alpha/kernel/osf_sys.c:95:#define NAME_OFFSEToffsetof (struct > osf_dirent, d_name) > ./arch/mips/kernel/sysirix.c:1738:#define NAME_OFFSET32

Re: [patch 20/20] Add apply_to_page_range() which applies a function to a pte range.

2007-04-04 Thread Matt Mackall
On Wed, Apr 04, 2007 at 12:12:11PM -0700, Jeremy Fitzhardinge wrote: > 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 pagetab

Re: [PATCH 12/13] maps: Add /proc/pid/pagemap interface

2007-04-04 Thread Matt Mackall
On Wed, Apr 04, 2007 at 10:03:04PM +0400, Nikita Danilov wrote: > Matt Mackall writes: > > [...] > > > > > Now I could adjust these to only export u64s in some preferred > > endianness. But given I already need details like the page size to > > make a

Re: [PATCH 6/13] maps: Move the page walker code to lib/

2007-04-04 Thread Matt Mackall
On Wed, Apr 04, 2007 at 03:50:56PM +1000, Nick Piggin wrote: > Matt Mackall wrote: > >On Wed, Apr 04, 2007 at 01:51:37PM +1000, Nick Piggin wrote: > > > >>Matt Mackall wrote: > >> > >>>Move the page walker code to lib/ > >>> > >>

Re: [PATCH 12/13] maps: Add /proc/pid/pagemap interface

2007-04-04 Thread Matt Mackall
On Wed, Apr 04, 2007 at 03:18:41PM +0400, Nikita Danilov wrote: > This pushes binary data to the user space. Wasn't /proc supposed to be > ascii-based to avoid compatibility problems (e.g., size of unsigned long > changing, endianness, etc.)? Most of what's in /proc is ASCII, true. But there are n

Re: [PATCH 6/13] maps: Move the page walker code to lib/

2007-04-03 Thread Matt Mackall
On Wed, Apr 04, 2007 at 01:51:37PM +1000, Nick Piggin wrote: > Matt Mackall wrote: > >Move the page walker code to lib/ > > > >This lets it get shared outside of proc/ and linked in only when > >needed. > > I think it would be better in mm/. I originally was loo

[PATCH 8/13] maps: Move clear_refs code to task_mmu.c

2007-04-03 Thread Matt Mackall
Move clear_refs code to task_mmu.c This puts all the clear_refs code where it belongs and probably lets things compile on MMU-less systems as well. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/

[PATCH 9/13] maps: Regroup task_mmu by interface

2007-04-03 Thread Matt Mackall
Regroup task_mmu by interface Reorder source so that all the code and data for each interface is together. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task_mmu.c === --- mm.orig/fs/proc/task_mmu.c 2007

[PATCH 7/13] maps: Simplify interdependence of /proc/pid/maps and smaps

2007-04-03 Thread Matt Mackall
Simplify interdependence of /proc/pid/maps and smaps This pulls the shared map display code out of show_map and puts it in show_smap where it belongs. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task

[PATCH 6/13] maps: Move the page walker code to lib/

2007-04-03 Thread Matt Mackall
Move the page walker code to lib/ This lets it get shared outside of proc/ and linked in only when needed. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task_mmu.c === --- mm.orig/fs/proc/task_mmu.c 2007

[PATCH 11/13] maps: Make /proc/pid/clear_refs option under CONFIG_EMBEDDED

2007-04-03 Thread Matt Mackall
Make /proc/pid/clear_refs option under CONFIG_EMBEDDED This interface is primarily useful for doing memory profiling and not much use on deployed embedded boxes. Make it optional. Together with /proc/pid/smaps, this save a few K. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/f

[PATCH 3/13] maps: Remove vma from args in the page walker

2007-04-03 Thread Matt Mackall
Remove vma from args in the page walker This makes the walker more generic. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Index: mm/fs/proc/task_mmu.c === --- mm.orig/fs/proc/task_mmu.c 2007-03-24 21:33:50.0 -0500

<    1   2   3   4   5   6   7   8   9   10   >