Re: 2.6.24-rc3-mm1: usb mouse doesn't work

2007-11-21 Thread Kirill A. Shutemov
, idVendor=, idProduct= usb usb4: new device strings: Mfr=3, Product=2, SerialNumber=1 usb usb4: Product: UHCI Host Controller usb usb4: Manufacturer: Linux 2.6.24-kas-alt1 uhci_hcd usb usb4: SerialNumber: :00:1d.3 uhci_hcd :00:1d.3: FGR not stopped yet! -- Regards, Kirill A. Shutemov

Re: 2.6.24-rc3-mm1

2007-11-21 Thread Kirill A. Shutemov
); EXPORT_SYMBOL(__down_failed_interruptible); @@ -22,3 +23,4 @@ EXPORT_SYMBOL(__put_user_8); EXPORT_SYMBOL(strstr); EXPORT_SYMBOL(csum_partial); +EXPORT_SYMBOL(empty_zero_page); _ Symbol init_level4_pgt is needed by nvidia module. Is it really need to unexport it? -- Regards, Kirill

Re: 2.6.24-rc3-mm1 - Kernel Panic on IO-APIC

2007-11-22 Thread Kirill A. Shutemov
] wrote: ACPI: Core revision 20070126 ..MP-BIOS bug: 8254 timer not connected to IO-APIC Kernel panic - not syncing: IO-APIC + timer doesn't work! Try using the 'noapic' kernel parameter I seen an identical error. This bug is also reproducible with qemu. -- Regards, Kirill

Re: 2.6.24-rc3-mm1: usb mouse doesn't work

2007-11-22 Thread Kirill A. Shutemov
On [Wed, 21.11.2007 14:22], Andrew Morton wrote: On Wed, 21 Nov 2007 20:23:46 +0200 Kirill A. Shutemov [EMAIL PROTECTED] wrote: USB mouse(Logitech M-BT58) doesn't work. TouchPad works. dmesg after rmmod usbcore modprobe uhci_hcd: usbcore: registered new interface driver usbfs

Re: 2.6.24-rc3-mm1

2007-11-22 Thread Kirill A. Shutemov
On x86_64 'uname -m' return 'x86'. It break many userspace programs. apt and rpm for example. -- Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ signature.asc Description: Digital signature

Re: [linux-usb-devel] 2.6.24-rc3-mm1: usb mouse doesn't work

2007-11-22 Thread Kirill A. Shutemov
test it? -- Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ signature.asc Description: Digital signature

Re: 2.6.24-rc3-mm1

2007-11-22 Thread Kirill A. Shutemov
On [Fri, 23.11.2007 01:48], Thomas Gleixner wrote: On Thu, 22 Nov 2007, Andrew Morton wrote: On Thu, 22 Nov 2007 12:22:05 +0200 Kirill A. Shutemov [EMAIL PROTECTED] wrote: On x86_64 'uname -m' return 'x86'. It break many userspace programs. apt and rpm for example. Yes

[PATCH 0/4] Unexport several headers and cleanup

2007-10-30 Thread Kirill A. Shutemov
This series of patches unexport several unneeded(I guess) headers from userspace. Patches based on patch posted to linux-kernel@ by Mike Frysinger in July. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

[PATCH 2/4] Unexport asm/elf.h

2007-10-30 Thread Kirill A. Shutemov
Do not export asm/elf.h during make headers_install. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] --- include/asm-generic/Kbuild.asm |3 --- include/linux/Kbuild |2 +- include/linux/elf.h|2 ++ include/linux/elfcore.h|2 ++ 4 files changed, 5

[PATCH 1/4] Unexport asm/page.h

2007-10-30 Thread Kirill A. Shutemov
Do not export asm/page.h during make headers_install. This removes PAGE_SIZE from userspace headers. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] --- include/asm-frv/Kbuild |1 - include/asm-generic/Kbuild.asm |1 - include/asm-s390/kexec.h |2 ++ include/asm-x86

[PATCH 3/4] Unexport asm/user.h and linux/user.h

2007-10-30 Thread Kirill A. Shutemov
Do not export asm/user.h and linux/user.h during make headers_install. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] --- include/asm-generic/Kbuild.asm |1 - include/asm-x86/Kbuild |2 -- include/linux/Kbuild |1 - include/linux/elfcore.h|2 ++ 4

[PATCH 4/4] Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed

2007-10-30 Thread Kirill A. Shutemov
asm/elf.h, asm/page.h and asm/user.h don't export to userspace now, so we can drop #ifdef __KERNEL__ for them. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] --- include/asm-alpha/elf.h |3 --- include/asm-alpha/page.h |3 --- include/asm-arm/elf.h |3

Re: [PATCH 0/4] Unexport several headers and cleanup

2007-10-30 Thread Kirill A. Shutemov
On [Tue, 30.10.2007 08:47], David Woodhouse wrote: On Tue, 2007-10-30 at 13:02 +0200, Kirill A. Shutemov wrote: This series of patches unexport several unneeded(I guess) headers from userspace. Patches based on patch posted to linux-kernel@ by Mike Frysinger in July. Looks OK to me

[PATCH] Unexport asm/elf.h

2007-10-31 Thread Kirill A. Shutemov
Do not export asm/elf.h during make headers_install. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] Reviewed-By: David Woodhouse [EMAIL PROTECTED] --- include/asm-generic/Kbuild.asm |3 --- include/linux/Kbuild |2 +- include/linux/elf.h|2 ++ include/linux

[PATCH] Unexport asm/page.h

2007-10-31 Thread Kirill A. Shutemov
Do not export asm/page.h during make headers_install. This removes PAGE_SIZE from userspace headers. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] Reviewed-By: David Woodhouse [EMAIL PROTECTED] Cc: David Howells [EMAIL PROTECTED] Cc: Martin Schwidefsky [EMAIL PROTECTED] Cc: Heiko Carstens

[PATCH] Unexport asm/user.h and linux/user.h

2007-10-31 Thread Kirill A. Shutemov
Do not export asm/user.h and linux/user.h during make headers_install. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] Reviewed-By: David Woodhouse [EMAIL PROTECTED] Cc: Thomas Gleixner [EMAIL PROTECTED] Cc: Ingo Molnar [EMAIL PROTECTED] Cc: H. Peter Anvin [EMAIL PROTECTED] --- include/asm

[PATCH] Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed

2007-10-31 Thread Kirill A. Shutemov
asm/elf.h, asm/page.h and asm/user.h don't export to userspace now, so we can drop #ifdef __KERNEL__ for them. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] Reviewed-By: David Woodhouse [EMAIL PROTECTED] --- include/asm-alpha/elf.h |3 --- include/asm-alpha/page.h |3

[PATCH] Do not export PAGE_SIZE to userspace.

2007-10-23 Thread Kirill A. Shutemov
not find PAGE_SIZE at compile time from a header file, but use an actual system call, at least for those architectures (like sun4) where this dependency exists. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] --- include/asm-blackfin/page.h |4 ++-- include/asm-m32r/page.h |3

Re: [PATCH] Do not export PAGE_SIZE to userspace.

2007-10-23 Thread Kirill A. Shutemov
On [Tue, 23.10.2007 12:22], Mike Frysinger wrote: On 10/23/07, Kirill A. Shutemov [EMAIL PROTECTED] wrote: Userspace should use getpagesize() or sysconf(_SC_PAGESIZE) to get memory page size. please go back through the archives and read the history here. we should work at dropping page.h

[PATCH] Unexport asm/user.h and linux/user.h

2007-10-24 Thread Kirill A. Shutemov
Do not export asm/user.h and linux/user.h during make headers_install. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] --- include/asm-generic/Kbuild.asm |1 - include/asm-x86/Kbuild |2 -- include/linux/Kbuild |1 - include/linux/elfcore.h|2 ++ 4

[PATCH] Unexport asm/elf.h

2007-10-24 Thread Kirill A. Shutemov
Do not export asm/elf.h during make headers_install. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] --- include/asm-generic/Kbuild.asm |3 --- include/linux/Kbuild |2 +- include/linux/elf.h|2 ++ include/linux/elfcore.h|2 ++ 4 files changed, 5

[PATCH] Unexport asm/page.h

2007-10-24 Thread Kirill A. Shutemov
Do not export asm/page.h during make headers_install. This removes PAGE_SIZE from userspace headers. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] --- include/asm-frv/Kbuild |1 - include/asm-generic/Kbuild.asm |1 - include/asm-s390/kexec.h |2 ++ include/asm-x86

[PATCH] Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed

2007-10-24 Thread Kirill A. Shutemov
asm/elf.h, asm/page.h and asm/user.h don't export to userspace now, so we can drop #ifdef __KERNEL__ for them. Signed-off-by: Kirill A. Shutemov [EMAIL PROTECTED] --- include/asm-alpha/elf.h |3 --- include/asm-alpha/page.h |3 --- include/asm-arm/elf.h |3

Re: [PATCH v4 0/8] Avoid cache trashing on clearing huge/gigantic page

2012-09-25 Thread Kirill A. Shutemov
decision. It would be nice if somebody test the patchset on other system or workload. Especially, if the configuration shows regression with THP enabled. -- Kirill A. Shutemov signature.asc Description: Digital signature

Re: [PATCHv2 3/6] staging: rts_pstor: reuse kbasename()

2012-10-03 Thread Kirill A. Shutemov
; - - ptr++; - } - - return path; + return kbasename(path); Looks like you silentely drop const qualifier here from kbasename() return value. -- Kirill A. Shutemov -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Access files from kernel

2012-10-03 Thread Kirill A. Shutemov
kernel directly was no-go for a long time. What's the new rule here? Is it worth to introduce an execption, if it's possible to solve the problem in userspace. -- Kirill A. Shutemov -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH v2] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-04 Thread Kirill A. Shutemov
not result in a CoW update the access flags for the faulting pmd. Cc: Andrea Arcangeli aarca...@redhat.com Cc: Chris Metcalf cmetc...@tilera.com Signed-off-by: Steve Capper steve.cap...@arm.com Signed-off-by: Will Deacon will.dea...@arm.com Acked-by: Kirill A. Shutemov kir...@shutemov.name

Deadlock on poweroff

2012-10-06 Thread Kirill A. Shutemov
the issue before? -- Kirill A. Shutemov -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: Deadlock on poweroff

2012-10-07 Thread Kirill A. Shutemov
On Sun, Oct 07, 2012 at 09:03:11AM -0700, Paul E. McKenney wrote: On Sun, Oct 07, 2012 at 05:47:11AM +0300, Kirill A. Shutemov wrote: Hi Paul and all, With commit 755609a9087fa983f567dc5452b2fa7b089b591f I've got deadlock on poweroff. It guess it happens because of race

Re: Deadlock on poweroff

2012-10-07 Thread Kirill A. Shutemov
On Sun, Oct 07, 2012 at 10:35:01PM +0530, Srivatsa S. Bhat wrote: On 10/07/2012 10:20 PM, Kirill A. Shutemov wrote: On Sun, Oct 07, 2012 at 09:03:11AM -0700, Paul E. McKenney wrote: On Sun, Oct 07, 2012 at 05:47:11AM +0300, Kirill A. Shutemov wrote: Hi Paul and all, With commit

Re: Deadlock on poweroff

2012-10-07 Thread Kirill A. Shutemov
On Sun, Oct 07, 2012 at 09:41:28PM -0700, Paul E. McKenney wrote: On Sun, Oct 07, 2012 at 07:50:12PM +0300, Kirill A. Shutemov wrote: On Sun, Oct 07, 2012 at 09:03:11AM -0700, Paul E. McKenney wrote: On Sun, Oct 07, 2012 at 05:47:11AM +0300, Kirill A. Shutemov wrote: Hi Paul and all

Re: [PATCH v2] gma500: medfield: drop bogus NULL check in mdfld_dsi_output_init()

2012-10-08 Thread Kirill A. Shutemov
to remove redundant parentheses while you're there. Otherwise Acked-by: Kirill A. Shutemov kirill.shute...@linux.intel.com DRM_ERROR(Invalid parameter\n); return; } -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH v3 1/8] x86: Improve __phys_addr performance by making use of carry flags and inlining

2012-11-05 Thread Kirill A. Shutemov
...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -- Kirill A. Shutemov -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH v3 1/8] x86: Improve __phys_addr performance by making use of carry flags and inlining

2012-11-05 Thread Kirill A. Shutemov
On Mon, Nov 05, 2012 at 01:56:28PM -0800, Alexander Duyck wrote: On 11/05/2012 12:24 PM, Kirill A. Shutemov wrote: On Mon, Nov 05, 2012 at 11:04:06AM -0800, Alexander Duyck wrote: This patch is meant to improve overall system performance when making use of the __phys_addr call. To do

Re: [RFC v3 0/3] vmpressure_fd: Linux VM pressure notifications

2012-11-07 Thread Kirill A. Shutemov
? -- Kirill A. Shutemov -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC v3 0/3] vmpressure_fd: Linux VM pressure notifications

2012-11-07 Thread Kirill A. Shutemov
On Wed, Nov 07, 2012 at 01:28:12PM +0200, Pekka Enberg wrote: On Wed, Nov 7, 2012 at 1:21 PM, Kirill A. Shutemov kir...@shutemov.name wrote: While the new API is very simple, it is still extensible (i.e. versioned). Sorry, I didn't follow previous discussion on this, but could you

Re: [RFC v3 0/3] vmpressure_fd: Linux VM pressure notifications

2012-11-07 Thread Kirill A. Shutemov
On Wed, Nov 07, 2012 at 03:43:46AM -0800, Anton Vorontsov wrote: On Wed, Nov 07, 2012 at 01:21:36PM +0200, Kirill A. Shutemov wrote: [...] Sorry, I didn't follow previous discussion on this, but could you explain what's wrong with memory notifications from memcg? As I can see you can get

[PATCH v5 01/11] thp: huge zero page: basic preparation

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com Huge zero page (hzp) is a non-movable huge page (2M on x86-64) filled with zeros. For now let's allocate the page on hugepage_init(). We'll switch to lazy allocation later. We are not going to map the huge zero page until we can handle

[PATCH v5 02/11] thp: zap_huge_pmd(): zap huge zero pmd

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com We don't have a real page to zap in huge zero page case. Let's just clear pmd and remove it from tlb. Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com --- mm/huge_memory.c | 21 + 1 files changed, 13

[PATCH v5 10/11] thp: implement refcounting for huge zero page

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com H. Peter Anvin doesn't like huge zero page which sticks in memory forever after the first allocation. Here's implementation of lockless refcounting for huge zero page. We have two basic primitives: {get,put}_huge_zero_page

[PATCH v5 09/11] thp: lazy huge zero page allocation

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com Instead of allocating huge zero page on hugepage_init() we can postpone it until first huge zero page map. It saves memory if THP is not in use. cmpxchg() is used to avoid race on huge_zero_pfn initialization. Signed-off-by: Kirill

[PATCH v5 07/11] thp: implement splitting pmd for huge zero page

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com We can't split huge zero page itself (and it's bug if we try), but we can split the pmd which points to it. On splitting the pmd we create a table with all ptes set to normal zero page. Signed-off-by: Kirill A. Shutemov kirill.shute

[PATCH v5 05/11] thp: change_huge_pmd(): keep huge zero page write-protected

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com We want to get page fault on write attempt to huge zero page, so let's keep it write-protected. Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com --- mm/huge_memory.c |2 ++ 1 files changed, 2 insertions(+), 0

[PATCH v5 11/11] thp, vmstat: implement HZP_ALLOC and HZP_ALLOC_FAILED events

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com hzp_alloc is incremented every time a huge zero page is successfully allocated. It includes allocations which where dropped due race with other allocation. Note, it doesn't count every map of the huge zero page, only

[PATCH v5 08/11] thp: setup huge zero page on non-write page fault

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com All code paths seems covered. Now we can map huge zero page on read page fault. We setup it in do_huge_pmd_anonymous_page() if area around fault address is suitable for THP and we've got read page fault. If we fail to setup huge zero page

[PATCH v5 03/11] thp: copy_huge_pmd(): copy huge zero page

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com It's easy to copy huge zero page. Just set destination pmd to huge zero page. It's safe to copy huge zero page since we have none yet :-p Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com --- mm/huge_memory.c | 17

[PATCH v5 04/11] thp: do_huge_pmd_wp_page(): handle huge zero page

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com On write access to huge zero page we alloc a new huge page and clear it. If ENOMEM, graceful fallback: we create a new pmd table and set pte around fault address to newly allocated normal (4k) page. All other ptes in the pmd set to normal

[PATCH v5 00/11] Introduce huge zero page

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com Hi, Andrew, here's updated huge zero page patchset. Please consider applying. = During testing I noticed big (up to 2.5 times) memory consumption overhead on some workloads (e.g. ft.A from NPB) if THP is enabled

[PATCH v5 06/11] thp: change split_huge_page_pmd() interface

2012-11-07 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com Pass vma instead of mm and add address parameter. In most cases we already have vma on the stack. We provides split_huge_page_pmd_mm() for few cases when we have mm, but not vma. This change is preparation to huge zero pmd splitting

Re: [RFC 1/3] mm: Add VM pressure notifications

2012-11-08 Thread Kirill A. Shutemov
2.4 and Documentation/cgroups/memory.txt sections 9 and 10. -- Kirill A. Shutemov -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

[PATCH] iio: hid-sensors: convert HID_SENSOR_ENUM_BASE_QUIRKS to bool

2012-10-22 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com It's non-sense to use tristate for the option, it's bool. Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com --- drivers/iio/common/hid-sensors/Kconfig |2 +- drivers/iio/common/hid-sensors/hid-sensor

Re: [PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-23 Thread Kirill A. Shutemov
On Fri, Oct 19, 2012 at 02:59:41AM +0300, Kirill A. Shutemov wrote: On Thu, Oct 18, 2012 at 04:45:02PM -0700, Andrew Morton wrote: On Mon, 15 Oct 2012 09:00:59 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: H. Peter Anvin doesn't like huge zero page which sticks

Re: [PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-23 Thread Kirill A. Shutemov
On Mon, Oct 22, 2012 at 11:43:49PM -0700, Andrew Morton wrote: On Tue, 23 Oct 2012 09:35:32 +0300 Kirill A. Shutemov kir...@shutemov.name wrote: On Fri, Oct 19, 2012 at 02:59:41AM +0300, Kirill A. Shutemov wrote: On Thu, Oct 18, 2012 at 04:45:02PM -0700, Andrew Morton wrote: On Mon

Re: [PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-23 Thread Kirill A. Shutemov
On Tue, Oct 23, 2012 at 03:59:15PM -0700, Andrew Morton wrote: On Tue, 23 Oct 2012 10:00:18 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: Well, how hard is it to trigger the bad behavior? One can easily create a situation in which that page's refcount frequently

[BUG] lkvm crash on crashkernel boot

2012-10-24 Thread Kirill A. Shutemov
/1608411/ -- Kirill A. Shutemov signature.asc Description: Digital signature

Re: [PATCH v3 07/10] thp: implement splitting pmd for huge zero page

2012-10-11 Thread Kirill A. Shutemov
On Fri, Oct 12, 2012 at 11:23:37AM +0800, Ni zhan Chen wrote: On 10/02/2012 11:19 PM, Kirill A. Shutemov wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com We can't split huge zero page itself, but we can split the pmd which points to it. On splitting the pmd we create

Re: [PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-24 Thread Kirill A. Shutemov
On Wed, Oct 24, 2012 at 12:22:53PM -0700, Andrew Morton wrote: On Wed, 24 Oct 2012 02:38:01 +0300 Kirill A. Shutemov kir...@shutemov.name wrote: On Tue, Oct 23, 2012 at 03:59:15PM -0700, Andrew Morton wrote: On Tue, 23 Oct 2012 10:00:18 +0300 Kirill A. Shutemov kirill.shute

Re: [PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-24 Thread Kirill A. Shutemov
On Wed, Oct 24, 2012 at 01:25:52PM -0700, Andrew Morton wrote: On Wed, 24 Oct 2012 22:45:52 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: On Wed, Oct 24, 2012 at 12:22:53PM -0700, Andrew Morton wrote: I'm thinking that such a workload would be the above dd

Re: [BUG] lkvm crash on crashkernel boot

2012-10-25 Thread Kirill A. Shutemov
On Thu, Oct 25, 2012 at 10:17:27AM +0300, Pekka Enberg wrote: On Wed, Oct 24, 2012 at 6:27 PM, Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: Hi, I've tried to play with kexec using lkvm. Unfortunately, lkvm crashes when I try to switch to crashkernel. I use Linus tree

Re: [PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-25 Thread Kirill A. Shutemov
On Wed, Oct 24, 2012 at 01:25:52PM -0700, Andrew Morton wrote: On Wed, 24 Oct 2012 22:45:52 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: On Wed, Oct 24, 2012 at 12:22:53PM -0700, Andrew Morton wrote: I'm thinking that such a workload would be the above dd

Re: [PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-25 Thread Kirill A. Shutemov
On Thu, Oct 25, 2012 at 02:05:24PM -0700, Andrew Morton wrote: On Thu, 25 Oct 2012 23:49:59 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: On Wed, Oct 24, 2012 at 01:25:52PM -0700, Andrew Morton wrote: On Wed, 24 Oct 2012 22:45:52 +0300 Kirill A. Shutemov kirill.shute

Re: [PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-25 Thread Kirill A. Shutemov
On Thu, Oct 25, 2012 at 02:37:07PM -0700, Andrew Morton wrote: On Fri, 26 Oct 2012 00:22:51 +0300 Kirill A. Shutemov kir...@shutemov.name wrote: On Thu, Oct 25, 2012 at 02:05:24PM -0700, Andrew Morton wrote: hm. It's odd that the kernel didn't try to shrink slabs in this case. Why

Re: [PATCH v3] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-26 Thread Kirill A. Shutemov
not result in a CoW update the access flags for the faulting pmd. Cc: Chris Metcalf cmetc...@tilera.com Cc: Kirill A. Shutemov kir...@shutemov.name Cc: Andrea Arcangeli aarca...@redhat.com Signed-off-by: Will Deacon will.dea...@arm.com --- Ok chaps, I rebased this thing onto today's next

Re: [PATCH v3] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-26 Thread Kirill A. Shutemov
On Fri, Oct 26, 2012 at 10:07:15AM +0100, Will Deacon wrote: On Fri, Oct 26, 2012 at 08:44:35AM +0100, Kirill A. Shutemov wrote: On Thu, Oct 25, 2012 at 05:44:31PM +0100, Will Deacon wrote: On x86 memory accesses to pages without the ACCESSED flag set result in the ACCESSED flag being

[PATCH 1/2] numa, mm: drop redundant check in do_huge_pmd_numa_page()

2012-10-26 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com We check if the pmd entry is the same as on pmd_trans_huge() in handle_mm_fault(). That's enough. Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com --- mm/huge_memory.c |6 -- 1 file changed, 6 deletions(-) diff

[PATCH 2/2] numa, mm: consolidate error path in do_huge_pmd_numa_page()

2012-10-26 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com Let's move all error path code to the end if the function. It makes code more straight-forward. Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com --- mm/huge_memory.c | 44 1

Re: [PATCH 1/2] numa, mm: drop redundant check in do_huge_pmd_numa_page()

2012-10-26 Thread Kirill A. Shutemov
On Fri, Oct 26, 2012 at 03:08:05PM +0200, Peter Zijlstra wrote: On Fri, 2012-10-26 at 15:54 +0300, Kirill A. Shutemov wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com We check if the pmd entry is the same as on pmd_trans_huge() in handle_mm_fault(). That's enough

Re: [PATCH 1/2] numa, mm: drop redundant check in do_huge_pmd_numa_page()

2012-10-26 Thread Kirill A. Shutemov
On Fri, Oct 26, 2012 at 03:43:12PM +0200, Peter Zijlstra wrote: On Fri, 2012-10-26 at 16:41 +0300, Kirill A. Shutemov wrote: On Fri, Oct 26, 2012 at 03:08:05PM +0200, Peter Zijlstra wrote: On Fri, 2012-10-26 at 15:54 +0300, Kirill A. Shutemov wrote: From: Kirill A. Shutemov kirill.shute

Re: [PATCH 1/2] numa, mm: drop redundant check in do_huge_pmd_numa_page()

2012-10-26 Thread Kirill A. Shutemov
On Fri, Oct 26, 2012 at 04:07:44PM +0200, Peter Zijlstra wrote: On Fri, 2012-10-26 at 16:57 +0300, Kirill A. Shutemov wrote: Yes, this code will catch it: /* if an huge pmd materialized from under us just retry later */ if (unlikely(pmd_trans_huge(*pmd

[PATCH] thp, vmstat: implement HZP_ALLOC and HZP_ALLOC_FAILED events

2012-10-26 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com HZP_ALLOC event triggers on every huge zero page allocation, including allocations which where dropped due race with other allocation. HZP_ALLOC_FAILED event triggers on huge zero page allocation fail (ENOMEM). Signed-off-by: Kirill

[PATCH] kvm tools: fix rbtree-interval search

2012-10-29 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com I've noticed message on kvm exit: Warning: serial8250__exit failed. kvm tool is not able to remove ioport range which was added previously. The issue is caused by bug in rbtree-interval. Search algorithm in rb_int_search_single

Re: [PATCH 00/26] pstore, mmc: add mmc as backend for pstore

2012-10-29 Thread Kirill A. Shutemov
part? -- Kirill A. Shutemov -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] target: Update copyright ownership to 2012

2012-11-10 Thread Kirill A. Shutemov
* Why do you remove Linux-iSCSI.org copyright? -- Kirill A. Shutemov -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

[PATCH v4 01/10] thp: huge zero page: basic preparation

2012-10-15 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com Huge zero page (hzp) is a non-movable huge page (2M on x86-64) filled with zeros. For now let's allocate the page on hugepage_init(). We'll switch to lazy allocation later. We are not going to map the huge zero page until we can handle

[PATCH v4 09/10] thp: lazy huge zero page allocation

2012-10-15 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com Instead of allocating huge zero page on hugepage_init() we can postpone it until first huge zero page map. It saves memory if THP is not in use. cmpxchg() is used to avoid race on huge_zero_pfn initialization. Signed-off-by: Kirill

[PATCH v4 07/10] thp: implement splitting pmd for huge zero page

2012-10-15 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com We can't split huge zero page itself (and it's bug if we try), but we can split the pmd which points to it. On splitting the pmd we create a table with all ptes set to normal zero page. Signed-off-by: Kirill A. Shutemov kirill.shute

[PATCH v4 08/10] thp: setup huge zero page on non-write page fault

2012-10-15 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com All code paths seems covered. Now we can map huge zero page on read page fault. We setup it in do_huge_pmd_anonymous_page() if area around fault address is suitable for THP and we've got read page fault. If we fail to setup huge zero page

[PATCH v4 05/10] thp: change_huge_pmd(): keep huge zero page write-protected

2012-10-15 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com We want to get page fault on write attempt to huge zero page, so let's keep it write-protected. Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com --- mm/huge_memory.c |2 ++ 1 files changed, 2 insertions(+), 0

[PATCH v4 00/10, REBASED] Introduce huge zero page

2012-10-15 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com Hi, Andrew, here's huge zero page patchset rebased to v3.7-rc1. Andrea, I've dropped your Reviewed-by due not-so-trivial conflicts in during rebase. Could you look through it again. Patches 2, 3, 4, 7, 10 had conflicts. Mostly due new MMU

[PATCH v4 02/10] thp: zap_huge_pmd(): zap huge zero pmd

2012-10-15 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com We don't have a real page to zap in huge zero page case. Let's just clear pmd and remove it from tlb. Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com --- mm/huge_memory.c | 21 + 1 files changed, 13

[PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-15 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com H. Peter Anvin doesn't like huge zero page which sticks in memory forever after the first allocation. Here's implementation of lockless refcounting for huge zero page. We have two basic primitives: {get,put}_huge_zero_page

[PATCH v4 06/10] thp: change split_huge_page_pmd() interface

2012-10-15 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com Pass vma instead of mm and add address parameter. In most cases we already have vma on the stack. We provides split_huge_page_pmd_mm() for few cases when we have mm, but not vma. This change is preparation to huge zero pmd splitting

[PATCH v4 04/10] thp: do_huge_pmd_wp_page(): handle huge zero page

2012-10-15 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com On write access to huge zero page we alloc a new huge page and clear it. If ENOMEM, graceful fallback: we create a new pmd table and set pte around fault address to newly allocated normal (4k) page. All other ptes in the pmd set to normal

[PATCH v4 03/10] thp: copy_huge_pmd(): copy huge zero page

2012-10-15 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com It's easy to copy huge zero page. Just set destination pmd to huge zero page. It's safe to copy huge zero page since we have none yet :-p Signed-off-by: Kirill A. Shutemov kirill.shute...@linux.intel.com --- mm/huge_memory.c | 17

Re: [PATCH v4 00/10, REBASED] Introduce huge zero page

2012-10-16 Thread Kirill A. Shutemov
. :-) -- Kirill A. Shutemov -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v4 00/10, REBASED] Introduce huge zero page

2012-10-16 Thread Kirill A. Shutemov
On Tue, Oct 16, 2012 at 07:13:07PM +0800, Ni zhan Chen wrote: On 10/16/2012 06:54 PM, Kirill A. Shutemov wrote: On Tue, Oct 16, 2012 at 05:53:07PM +0800, Ni zhan Chen wrote: By hpa request I've tried alternative approach for hzp implementation (see Virtual huge zero page patchset): pmd table

Re: [PATCH v3 00/10] Introduce huge zero page

2012-10-18 Thread Kirill A. Shutemov
On Wed, Oct 17, 2012 at 10:32:13AM +0800, Ni zhan Chen wrote: On 10/03/2012 08:04 AM, Kirill A. Shutemov wrote: On Tue, Oct 02, 2012 at 03:31:48PM -0700, Andrew Morton wrote: On Tue, 2 Oct 2012 18:19:22 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: During testing I

Re: [PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-18 Thread Kirill A. Shutemov
On Thu, Oct 18, 2012 at 04:45:02PM -0700, Andrew Morton wrote: On Mon, 15 Oct 2012 09:00:59 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: H. Peter Anvin doesn't like huge zero page which sticks in memory forever after the first allocation. Here's implementation

[PATCH] ns: move free_nsproxy() out of do_exit() path

2012-07-13 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com free_nsproxy() is too heavy to be on exit path. Let's free namespaces asynchronously to not block exit_group() syscall. Microbenchmark: : #define _GNU_SOURCE : #include unistd.h : #include sched.h : #include stdlib.h : #include sys/wait.h

Re: [PATCH] ns: move free_nsproxy() out of do_exit() path

2012-07-13 Thread Kirill A. Shutemov
On Fri, Jul 13, 2012 at 02:08:06PM -0700, Andrew Morton wrote: On Fri, 13 Jul 2012 14:48:08 +0300 Kirill A. Shutemov kirill.shute...@linux.intel.com wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com free_nsproxy() is too heavy to be on exit path. Let's free namespaces

[PATCH v2] ns: do not block exit_task_namespaces() for a long time

2012-07-16 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com On exiting of the last task in a namespace we need to trigger freeing of the namespace. Currently, we call synchronize_rcu() and free_nsproxy() directly on do_exit() path. On my machine synchronize_rcu() blocks for about 0.01 seconds

Re: [PATCH v2] ns: do not block exit_task_namespaces() for a long time

2012-07-16 Thread Kirill A. Shutemov
On Mon, Jul 16, 2012 at 05:53:01PM +0100, Al Viro wrote: On Mon, Jul 16, 2012 at 06:09:24PM +0300, Kirill A. Shutemov wrote: From: Kirill A. Shutemov kirill.shute...@linux.intel.com On exiting of the last task in a namespace we need to trigger freeing of the namespace. Currently, we call

Re: [PATCH v2] ns: do not block exit_task_namespaces() for a long time

2012-07-16 Thread Kirill A. Shutemov
On Mon, Jul 16, 2012 at 06:09:24PM +0300, Kirill A. Shutemov wrote: I also move synchronize_rcu() inside free_nsproxy(). It fixes racy put_nsproxy() which calls free_nsproxy() without synchronize_rcu(). I guess it was missed during switch to RCU (see cf7b708). I was wrong here. No races. RCU

Re: [PATCH] mm/memcg: wrap mem_cgroup_from_css function

2012-07-19 Thread Kirill A. Shutemov
email: a href=mailto:d...@kvack.org; em...@kvack.org /a -- Kirill A. Shutemov -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

Re: [PATCH] mm/memcg: wrap mem_cgroup_from_css function

2012-07-19 Thread Kirill A. Shutemov
On Thu, Jul 19, 2012 at 05:23:09PM +0800, Wanpeng Li wrote: On Thu, Jul 19, 2012 at 12:14:20PM +0300, Kirill A. Shutemov wrote: On Wed, Jul 18, 2012 at 11:05:30AM +0800, Wanpeng Li wrote: wrap mem_cgroup_from_css function to clarify get mem cgroup from cgroup_subsys_state. Signed-off

Re: [PATCH] mm/memcg: wrap mem_cgroup_from_css function

2012-07-19 Thread Kirill A. Shutemov
On Thu, Jul 19, 2012 at 05:38:35PM +0800, Gavin Shan wrote: On Thu, Jul 19, 2012 at 05:23:09PM +0800, Wanpeng Li wrote: On Thu, Jul 19, 2012 at 12:14:20PM +0300, Kirill A. Shutemov wrote: On Wed, Jul 18, 2012 at 11:05:30AM +0800, Wanpeng Li wrote: wrap mem_cgroup_from_css function to clarify

Re: [RESEND] IOZone with transparent huge page cache

2013-04-15 Thread Kirill A. Shutemov
Dave Hansen wrote: On 04/15/2013 11:17 AM, Kirill A. Shutemov wrote: I run iozone using mmap files (-B) with different number of threads. The test machine is 4s Westmere - 4x10 cores + HT. How did you run this, exactly? Which iozone arguments? iozone -B -s 2186/$threads -t $threads

Re: [PATCHv3, RFC 09/34] thp: represent file thp pages in meminfo and friends

2013-04-16 Thread Kirill A. Shutemov
Dave Hansen wrote: On 04/05/2013 04:59 AM, Kirill A. Shutemov wrote: The patch adds new zone stat to count file transparent huge pages and adjust related places. For now we don't count mapped or dirty file thp pages separately. I can understand tracking NR_FILE_TRANSPARENT_HUGEPAGES

Re: [PATCHv3, RFC 31/34] thp: initial implementation of do_huge_linear_fault()

2013-04-17 Thread Kirill A. Shutemov
Dave Hansen wrote: On 04/05/2013 04:59 AM, Kirill A. Shutemov wrote: +int do_huge_linear_fault(struct mm_struct *mm, struct vm_area_struct *vma, + unsigned long address, pmd_t *pmd, unsigned int flags) +{ + unsigned long haddr = address HPAGE_PMD_MASK; + struct page

[PATCH] thp: fix huge zero page logic for page with pfn == 0

2013-04-17 Thread Kirill A. Shutemov
From: Kirill A. Shutemov kirill.shute...@linux.intel.com Current implementation of huge zero page uses pfn value 0 to indicate that the page hasn't allocated yet. It assumes that buddy page allocator can't return page with pfn == 0. Let's rework the code to store 'struct page *' of huge zero

  1   2   3   4   5   6   7   8   9   10   >