[PATCH 39/46] sched: numa: Make find_busiest_queue() a method

2012-11-21 Thread Mel Gorman
From: Peter Zijlstra Its a bit awkward but it was the least painful means of modifying the queue selection. Used in the next patch to conditionally use a queue. Signed-off-by: Peter Zijlstra Cc: Paul Turner Cc: Lee Schermerhorn Cc: Christoph Lameter Cc: Rik van Riel Cc: Andrew Morton Cc: L

[PATCH 34/46] sched: numa: Slowly increase the scanning period as NUMA faults are handled

2012-11-21 Thread Mel Gorman
Currently the rate of scanning for an address space is controlled by the individual tasks. The next scan is simply determined by 2*p->numa_scan_period. The 2*p->numa_scan_period is arbitrary and never changes. At this point there is still no proper policy that decides if a task or process is prope

[PATCH 26/46] sched, numa, mm: Count WS scanning against present PTEs, not virtual memory ranges

2012-11-21 Thread Mel Gorman
By accounting against the present PTEs, scanning speed reflects the actual present (mapped) memory. Suggested-by: Ingo Molnar Signed-off-by: Peter Zijlstra Cc: Linus Torvalds Cc: Andrew Morton Cc: Peter Zijlstra Cc: Andrea Arcangeli Cc: Rik van Riel Cc: Mel Gorman Signed-off-by: Ingo Molna

[PATCH 30/46] mm: numa: Migrate pages handled during a pmd_numa hinting fault

2012-11-21 Thread Mel Gorman
To say that the PMD handling code was incorrectly transferred from autonuma is an understatement. The intention was to handle a PMDs worth of pages in the same fault and effectively batch the taking of the PTL and page migration. The copied version instead has the impact of clearing a number of pte

[PATCH 33/46] mm: numa: Rate limit setting of pte_numa if node is saturated

2012-11-21 Thread Mel Gorman
If there are a large number of NUMA hinting faults and all of them are resulting in migrations it may indicate that memory is just bouncing uselessly around. NUMA balancing cost is likely exceeding any benefit from locality. Rate limit the PTE updates if the node is migration rate-limited. As noted

[PATCH 32/46] mm: numa: Rate limit the amount of memory that is migrated between nodes

2012-11-21 Thread Mel Gorman
NOTE: This is very heavily based on similar logic in autonuma. It should be signed off by Andrea but because there was no standalone patch and it's sufficiently different from what he did that the signed-off is omitted. Will be added back if requested. If a large number of

[PATCH 36/46] mm: numa: Use a two-stage filter to restrict pages being migrated for unlikely task<->node relationships

2012-11-21 Thread Mel Gorman
While it is desirable that all threads in a process run on its home node, this is not always possible or necessary. There may be more threads than exist within the node or the node might over-subscribed with unrelated processes. This can cause a situation whereby a page gets migrated off its home

[PATCH 29/46] mm: numa: Migrate on reference policy

2012-11-21 Thread Mel Gorman
This is the simplest possible policy that still does something of note. When a pte_numa is faulted, it is moved immediately. Any replacement policy must at least do better than this and in all likelihood this policy regresses normal workloads. Signed-off-by: Mel Gorman Acked-by: Rik van Riel ---

[PATCH 28/46] mm: numa: Add pte updates, hinting and migration stats

2012-11-21 Thread Mel Gorman
It is tricky to quantify the basic cost of automatic NUMA placement in a meaningful manner. This patch adds some vmstats that can be used as part of a basic costing model. u= basic unit = sizeof(void *) Ca = cost of struct page access = sizeof(struct page) / u Cpte = Cost PTE access = Ca Cup

[PATCH 27/46] mm: sched: numa: Implement slow start for working set sampling

2012-11-21 Thread Mel Gorman
From: Peter Zijlstra Add a 1 second delay before starting to scan the working set of a task and starting to balance it amongst nodes. [ note that before the constant per task WSS sampling rate patch the initial scan would happen much later still, in effect that patch caused this regression.

[PATCH 25/46] mm: sched: numa: Implement constant, per task Working Set Sampling (WSS) rate

2012-11-21 Thread Mel Gorman
From: Peter Zijlstra Previously, to probe the working set of a task, we'd use a very simple and crude method: mark all of its address space PROT_NONE. That method has various (obvious) disadvantages: - it samples the working set at dissimilar rates, giving some tasks a sampling quality adva

[PATCH 24/46] mm: numa: Add fault driven placement and migration

2012-11-21 Thread Mel Gorman
From: Peter Zijlstra NOTE: This patch is based on "sched, numa, mm: Add fault driven placement and migration policy" but as it throws away all the policy to just leave a basic foundation I had to drop the signed-offs-by. This patch creates a bare-bones method for setting PTEs pte

[PATCH 22/46] mm: mempolicy: Implement change_prot_numa() in terms of change_protection()

2012-11-21 Thread Mel Gorman
From: Lee Schermerhorn This patch converts change_prot_numa() to use change_protection(). As pte_numa and friends check the PTE bits directly it is necessary for change_protection() to use pmd_mknuma(). Hence the required modifications to change_protection() are a little clumsy but the end result

[PATCH 17/46] mm: mempolicy: Add MPOL_MF_NOOP

2012-11-21 Thread Mel Gorman
From: Lee Schermerhorn NOTE: I have not yet addressed by own review feedback of this patch. At this point I'm trying to construct a baseline tree and will apply my own review feedback later and then fold it in. This patch augments the MPOL_MF_LAZY feature by adding a "NOOP" polic

[PATCH 05/46] mm: Only flush the TLB when clearing an accessible pte

2012-11-21 Thread Mel Gorman
From: Rik van Riel If ptep_clear_flush() is called to clear a page table entry that is accessible anyway by the CPU, eg. a _PAGE_PROTNONE page table entry, there is no need to flush the TLB on remote CPUs. Signed-off-by: Rik van Riel Signed-off-by: Peter Zijlstra Cc: Linus Torvalds Cc: Andrew

[PATCH 08/46] mm: compaction: Move migration fail/success stats to migrate.c

2012-11-21 Thread Mel Gorman
The compact_pages_moved and compact_pagemigrate_failed events are convenient for determining if compaction is active and to what degree migration is succeeding but it's at the wrong level. Other users of migration may also want to know if migration is working properly and this will be particularly

[PATCH 13/46] mm: numa: Support NUMA hinting page faults from gup/gup_fast

2012-11-21 Thread Mel Gorman
From: Andrea Arcangeli Introduce FOLL_NUMA to tell follow_page to check pte/pmd_numa. get_user_pages must use FOLL_NUMA, and it's safe to do so because it always invokes handle_mm_fault and retries the follow_page later. KVM secondary MMU page faults will trigger the NUMA hinting page faults thr

[PATCH 18/46] mm: mempolicy: Check for misplaced page

2012-11-21 Thread Mel Gorman
From: Lee Schermerhorn This patch provides a new function to test whether a page resides on a node that is appropriate for the mempolicy for the vma and address where the page is supposed to be mapped. This involves looking up the node where the page belongs. So, the function returns that node

[PATCH 20/46] mm: mempolicy: Use _PAGE_NUMA to migrate pages

2012-11-21 Thread Mel Gorman
Note: Based on "mm/mpol: Use special PROT_NONE to migrate pages" but sufficiently different that the signed-off-bys were dropped Combine our previous _PAGE_NUMA, mpol_misplaced and migrate_misplaced_page() pieces into an effective migrate on fault scheme. Note that (on x86) we rely on PRO

[PATCH 19/46] mm: migrate: Introduce migrate_misplaced_page()

2012-11-21 Thread Mel Gorman
From: Peter Zijlstra Note: This was originally based on Peter's patch "mm/migrate: Introduce migrate_misplaced_page()" but borrows extremely heavily from Andrea's "autonuma: memory follows CPU algorithm and task/mm_autonuma stats collection". The end result is barely recog

[PATCH 16/46] mm: mempolicy: Make MPOL_LOCAL a real policy

2012-11-21 Thread Mel Gorman
From: Peter Zijlstra Make MPOL_LOCAL a real and exposed policy such that applications that relied on the previous default behaviour can explicitly request it. Requested-by: Christoph Lameter Reviewed-by: Rik van Riel Cc: Lee Schermerhorn Cc: Andrew Morton Cc: Linus Torvalds Signed-off-by: P

[PATCH 15/46] mm: numa: Create basic numa page hinting infrastructure

2012-11-21 Thread Mel Gorman
Note: This patch started as "mm/mpol: Create special PROT_NONE infrastructure" and preserves the basic idea but steals *very* heavily from "autonuma: numa hinting page faults entry points" for the actual fault handlers without the migration parts. The end result is

[PATCH 14/46] mm: numa: split_huge_page: transfer the NUMA type from the pmd to the pte

2012-11-21 Thread Mel Gorman
From: Andrea Arcangeli When we split a transparent hugepage, transfer the NUMA type from the pmd to the pte if needed. Signed-off-by: Andrea Arcangeli Signed-off-by: Mel Gorman Reviewed-by: Rik van Riel --- mm/huge_memory.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/huge_mem

[PATCH 11/46] mm: numa: define _PAGE_NUMA

2012-11-21 Thread Mel Gorman
From: Andrea Arcangeli The objective of _PAGE_NUMA is to be able to trigger NUMA hinting page faults to identify the per NUMA node working set of the thread at runtime. Arming the NUMA hinting page fault mechanism works similarly to setting up a mprotect(PROT_NONE) virtual range: the present bit

[PATCH 09/46] mm: migrate: Add a tracepoint for migrate_pages

2012-11-21 Thread Mel Gorman
The pgmigrate_success and pgmigrate_fail vmstat counters tells the user about migration activity but not the type or the reason. This patch adds a tracepoint to identify the type of page migration and why the page is being migrated. Signed-off-by: Mel Gorman Reviewed-by: Rik van Riel --- includ

[PATCH 06/46] mm: Count the number of pages affected in change_protection()

2012-11-21 Thread Mel Gorman
From: Peter Zijlstra This will be used for three kinds of purposes: - to optimize mprotect() - to speed up working set scanning for working set areas that have not been touched - to more accurately scan per real working set No change in functionality from this patch. Suggested-by: Ingo

[PATCH 00/46] Automatic NUMA Balancing V4

2012-11-21 Thread Mel Gorman
tldr: Benchmarkers, only test patches 1-37. If there is instability, it may be due to the native THP migration patch and test with 1-36. Please report any results or problems you find. In terms of merging, I would also only consider patches 1-37. git tree: git://git.kernel.

[PATCH 07/46] mm: Optimize the TLB flush of sys_mprotect() and change_protection() users

2012-11-21 Thread Mel Gorman
From: Ingo Molnar Reuse the NUMA code's 'modified page protections' count that change_protection() computes and skip the TLB flush if there's no changes to a range that sys_mprotect() modifies. Given that mprotect() already optimizes the same-flags case I expected this optimization to dominantly

[PATCH 04/46] x86/mm: Introduce pte_accessible()

2012-11-21 Thread Mel Gorman
From: Rik van Riel We need pte_present to return true for _PAGE_PROTNONE pages, to indicate that the pte is associated with a page. However, for TLB flushing purposes, we would like to know whether the pte points to an actually accessible page. This allows us to skip remote TLB flushes for page

Re: [PATCH V4 1/4] [SCSI] drivers/scsi/ufs: Seggregate PCI Specific Code

2012-11-21 Thread vinayak holikatti
On Wed, Nov 14, 2012 at 2:56 AM, James Bottomley wrote: > On Thu, 2012-10-18 at 17:37 +0530, vinayak holikatti wrote: >> I am Vacation will look into it when i am back to work. >> > This doesn't apply on 3.7-rc1. Am I missing any patches in between ? > > OK, so it doesn't apply for me either: > >

[PATCH 03/46] mm,generic: only flush the local TLB in ptep_set_access_flags

2012-11-21 Thread Mel Gorman
From: Rik van Riel The function ptep_set_access_flags is only ever used to upgrade access permissions to a page. That means the only negative side effect of not flushing remote TLBs is that other CPUs may incur spurious page faults, if they happen to access the same address, and still have a PTE

[PATCH 02/46] x86: mm: drop TLB flush from ptep_set_access_flags

2012-11-21 Thread Mel Gorman
From: Rik van Riel Intel has an architectural guarantee that the TLB entry causing a page fault gets invalidated automatically. This means we should be able to drop the local TLB invalidation. Because of the way other areas of the page fault code work, chances are good that all x86 CPUs do this.

Re: [PATCH v5 1/2] x86/kexec: VMCLEAR vmcss on all cpus if necessary

2012-11-21 Thread Gleb Natapov
On Wed, Nov 21, 2012 at 10:23:12AM +0800, Zhang Yanfei wrote: > This patch adds an atomic notifier list named crash_notifier_list. > When loading kvm-intel module, a notifier will be registered in > the list to enable vmcss loaded on all cpus to be VMCLEAR'd if > needed. > > Signed-off-by: Zhang Y

Re: [RFC PATCH] mm: trace filemap add and del

2012-11-21 Thread Robert Jarzmik
Andrew Morton writes: >> +TP_STRUCT__entry( >> +__field(struct page *, page) >> +__field(unsigned long, i_no) > > May as well call this i_ino - there's little benefit in using a > different identifier. Agreed for patch V2. > >> +__field(unsigned long, pageof

Re: [PATCH v5 2/2] KVM-INTEL: add a notifier and a bitmap to support VMCLEAR in kdump

2012-11-21 Thread Gleb Natapov
On Wed, Nov 21, 2012 at 10:26:35AM +0800, Zhang Yanfei wrote: > The notifier will be registered in crash_notifier_list when loading > kvm-intel module. And the bitmap indicates whether we should do > VMCLEAR operation in kdump. The bits in the bitmap are set/unset > according to different condition

Re: [RFC PATCH] mm: trace filemap add and del

2012-11-21 Thread Robert Jarzmik
Dave Chinner writes: > We actually have an informal convention for formating filesystem > trace events, and that is to use the device number > >> >> > + ), >> > + >> > + TP_printk("page=%p pfn=%lu blk=%d:%d inode+ofs=%lu+%lu", > > ... and to prefix messages like: > > TP_printk("dev %d

Re: [RFC PATCH] mm: trace filemap add and del

2012-11-21 Thread Robert Jarzmik
Hugh Dickins writes: > On Thu, 8 Nov 2012, Robert Jarzmik wrote: >> --- a/mm/filemap.c >> +++ b/mm/filemap.c >> @@ -467,6 +471,7 @@ int add_to_page_cache_locked(struct page *page, struct >> address_space *mapping, >> } else { >> page->mapping = NULL; >>

Re: [RFC/PATCH 0/1] ubi: Add ubiblock driver

2012-11-21 Thread Ezequiel Garcia
Hi Thomas, On Wed, Nov 21, 2012 at 7:00 AM, Thomas Petazzoni wrote: > Dear Ezequiel Garcia, > > On Tue, 20 Nov 2012 19:39:38 -0300, Ezequiel Garcia wrote: > >> * Read/write support >> >> Yes, this implementation supports read/write access. > > While I think the original ubiblk that was read-only

Re: [PULL] Yama update (3.8)

2012-11-21 Thread James Morris
On Tue, 20 Nov 2012, Kees Cook wrote: > Hi James, > > Please pull these Yama changes for 3.8. Thanks! > Pulled, thanks. -- James Morris -- 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 h

Re: [PATCH 1/4] bdi: Track users that require stable page writes

2012-11-21 Thread Christoph Hellwig
On Wed, Nov 21, 2012 at 02:54:35AM -0500, Christoph Hellwig wrote: > On Tue, Nov 20, 2012 at 06:00:34PM -0800, Darrick J. Wong wrote: > > This creates a per-backing-device counter that tracks the number of users > > which > > require pages to be held immutable during writeout. Eventually it will

Re: [PATCH v2 01/11] kexec: introduce kexec_ops struct

2012-11-21 Thread Daniel Kiper
On Tue, Nov 20, 2012 at 08:40:39AM -0800, ebied...@xmission.com wrote: > Daniel Kiper writes: > > > Some kexec/kdump implementations (e.g. Xen PVOPS) could not use default > > functions or require some changes in behavior of kexec/kdump generic code. > > To cope with that problem kexec_ops struct

Re: [PATCH 1/4] bdi: Track users that require stable page writes

2012-11-21 Thread Christoph Hellwig
> +static inline void bdi_require_stable_pages(struct backing_dev_info *bdi) > +{ > + bdi->capabilities |= BDI_CAP_STABLE_WRITES; > +} > + > +static inline void bdi_unrequire_stable_pages(struct backing_dev_info *bdi) > +{ > + bdi->capabilities &= ~BDI_CAP_STABLE_WRITES; > +} Any reason to

Re: [PATCH V4 1/4] [SCSI] drivers/scsi/ufs: Seggregate PCI Specific Code

2012-11-21 Thread James Bottomley
On Wed, 2012-11-21 at 16:02 +0530, vinayak holikatti wrote: > On Wed, Nov 14, 2012 at 2:56 AM, James Bottomley > wrote: > > On Thu, 2012-10-18 at 17:37 +0530, vinayak holikatti wrote: > >> I am Vacation will look into it when i am back to work. > >> > This doesn't apply on 3.7-rc1. Am I missing an

Re: [PATCH 2/4] mm: Only enforce stable page writes if the backing device requires it

2012-11-21 Thread Christoph Hellwig
On Tue, Nov 20, 2012 at 06:00:41PM -0800, Darrick J. Wong wrote: > Create a helper function to check if a backing device requires stable page > writes and, if so, performs the necessary wait. Then, make it so that all > points in the memory manager that handle making pages writable use the helper

Re: [PATCH 00/27] Latest numa/core release, v16

2012-11-21 Thread Mel Gorman
On Mon, Nov 19, 2012 at 07:41:16PM -0500, Rik van Riel wrote: > On 11/19/2012 06:00 PM, Mel Gorman wrote: > >On Mon, Nov 19, 2012 at 11:36:04PM +0100, Ingo Molnar wrote: > >> > >>* Mel Gorman wrote: > >> > >>>Ok. > >>> > >>>In response to one of your later questions, I found that I had > >>>in fac

Re: [PATCHv9 1/3] Runtime Interpreted Power Sequences

2012-11-21 Thread Tomi Valkeinen
On 2012-11-21 06:23, Alex Courbot wrote: > Hi Grant, > > On Wednesday 21 November 2012 05:54:29 Grant Likely wrote: >>> With the advent of the device tree and of ARM kernels that are not >>> board-tied, we cannot rely on these board-specific hooks anymore but >> >> This isn't strictly true. It is

Re: numa/core regressions fixed - more testers wanted

2012-11-21 Thread Ingo Molnar
* David Rientjes wrote: > Over the past 24 hours, however, throughput has significantly > improved from a 6.3% regression to a 3.0% regression [...] It's still a regression though, and I'd like to figure out the root cause of that. An updated full profile from tip:master [which has all the l

[GIT] Fix SELinux RCU bug

2012-11-21 Thread James Morris
Please pull. The following changes since commit 99b6e1e7233073a23a20824db8c5260a723ed192: Linus Torvalds (1): Merge branch 'merge' of git://git.kernel.org/.../benh/powerpc are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.gi

Re: BUG at kernel/timer.c:1100 when using JFFS2

2012-11-21 Thread Nathan Williams
On Wed, 2012-11-21 at 09:49 +0200, Artem Bityutskiy wrote: > You probably use 3.5? There was a bug which was fixed, try the latest > stable 3.5 version, the fix must be there. > No I'm using 3.6. Do you know what the patch was so I can look it up? -- To unsubscribe from this list: send the lin

Re: [PATCH 00/27] Latest numa/core release, v16

2012-11-21 Thread Mel Gorman
On Mon, Nov 19, 2012 at 11:37:01PM -0800, David Rientjes wrote: > On Tue, 20 Nov 2012, Ingo Molnar wrote: > > > No doubt numa/core should not regress with THP off or on and > > I'll fix that. > > > > As a background, here's how SPECjbb gets slower on mainline > > (v3.7-rc6) if you boot Mel's ke

[GIT PULL] extcon fixes for Linux 3.7 rc6

2012-11-21 Thread MyungJoo Ham
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The following changes since commit f4a75d2eb7b1e2206094b901be09adb31ba63681: Linux 3.7-rc6 (2012-11-16 17:42:40 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mzx/extcon.git for-gregkh Alexey Khorosh

[GIT PULL FOR v3.8] Davinci VPIF trivial fixes

2012-11-21 Thread Prabhakar Lad
Hi Mauro, Can you please pull the following patches for vpif, which fixes some trivial issues. Thanks and Regards, --Prabhakar Lad The following changes since commit 2c4e11b7c15af70580625657a154ea7ea70b8c76: [media] siano: fix RC compilation (2012-11-07 11:09:08 +0100) are available in the g

Re: [PATCH 37/46] mm: numa: Add THP migration for the NUMA working set scanning fault case.

2012-11-21 Thread Mel Gorman
On Wed, Nov 21, 2012 at 10:21:43AM +, Mel Gorman wrote: > Note: This is very heavily based on a patch from Peter Zijlstra with > fixes from Ingo Molnar, Hugh Dickins and Johannes Weiner. That patch > put a lot of migration logic into mm/huge_memory.c where it does > not belon

Re: [GIT PULL v2] at91: fixes for 3.7-rc7

2012-11-21 Thread Nicolas Ferre
On 11/21/2012 08:03 AM, Olof Johansson : > Hi, > > > On Tue, Nov 20, 2012 at 09:59:27AM +0100, Nicolas Ferre wrote: >> Arnd, Olof, >> >> Just for the record, I do not want to put pressure at a such late time in >> the 3.7-rc process. So, I just reworked that pull-request because the >> previous

[PATCH] sign-file: fix the perl warning message when extracting ASN.1

2012-11-21 Thread David Howells
There have the following warning message when running modules install for sign ko files: # make modules_install ... INSTALL drivers/input/touchscreen/pcap_ts.ko Found = in conditional, should be == at scripts/sign-file line 164. Found = in conditional, should be == at scripts/sign-file line 161

Re: [PATCH, v2] mm, numa: Turn 4K pte NUMA faults into effective hugepage ones

2012-11-21 Thread Mel Gorman
On Tue, Nov 20, 2012 at 05:09:18PM +0100, Ingo Molnar wrote: > > Ok, the patch withstood a bit more testing as well. Below is a > v2 version of it, with a couple of cleanups (no functional > changes). > > Thanks, > > Ingo > > -> > Subject: mm, numa: Turn 4K pte NUMA faul

Re: [PATCHv9 1/3] Runtime Interpreted Power Sequences

2012-11-21 Thread Thierry Reding
On Wed, Nov 21, 2012 at 01:06:03PM +0200, Tomi Valkeinen wrote: > On 2012-11-21 06:23, Alex Courbot wrote: > > Hi Grant, > > > > On Wednesday 21 November 2012 05:54:29 Grant Likely wrote: > >>> With the advent of the device tree and of ARM kernels that are not > >>> board-tied, we cannot rely on t

[PATCH 1/1] arm: tegra: fix comment in dsib clk set_parent

2012-11-21 Thread Sivaram Nair
Since the clk framework has already taken necessary locks before calling into the arch clk ops code, no further locks are needed while setting the parent of dsib clk. This patch removes a comment that indicated otherwise, and yet did not take any locks. Signed-off-by: Sivaram Nair --- arch/arm/m

Re: BUG at kernel/timer.c:1100 when using JFFS2

2012-11-21 Thread Nathan Williams
On Wed, 2012-11-21 at 22:08 +1100, Nathan Williams wrote: > On Wed, 2012-11-21 at 09:49 +0200, Artem Bityutskiy wrote: > > You probably use 3.5? There was a bug which was fixed, try the latest > > stable 3.5 version, the fix must be there. > > > > No I'm using 3.6. Do you know what the patch was

[PATCH V1 1/2] Xen acpi memory hotplug driver

2012-11-21 Thread Liu, Jinsong
>From 630c65690c878255ce71e7c1172338ed08709273 Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Tue, 20 Nov 2012 21:14:37 +0800 Subject: [PATCH 1/2] Xen acpi memory hotplug driver Xen acpi memory hotplug consists of 2 logic components: Xen acpi memory hotplug driver and Xen hypercall. This patch

[PATCH V1 2/2] Xen acpi memory hotplug hypercall

2012-11-21 Thread Liu, Jinsong
>From dd622978066d2cf29a26f246ad6c55f51a0a6272 Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Wed, 21 Nov 2012 15:39:47 +0800 Subject: [PATCH 2/2] Xen acpi memory hotplug hypercall This patch implement Xen acpi memory hotplug hypercall, extracting memory information then hypercall to hypervisor

Re: [PATCH] x86/mm: Don't flush the TLB on #WP pmd fixups

2012-11-21 Thread Mel Gorman
On Tue, Nov 20, 2012 at 01:31:56PM +0100, Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > * Ingo Molnar wrote: > > > > > numa/core profile: > > > > > > 95.66% perf-1201.map [.] 0x7fe4ad1c8fc7 > > > 1.70% libjvm.so [.] 0x00381581

Re: numa/core regressions fixed - more testers wanted

2012-11-21 Thread Mel Gorman
On Tue, Nov 20, 2012 at 07:54:13PM -0600, Andrew Theurer wrote: > On Tue, 2012-11-20 at 18:56 +0100, Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > > > ( The 4x JVM regression is still an open bug I think - I'll > > > re-check and fix that one next, no need to re-report it, > > > I'm on it

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

2012-11-21 Thread Glauber Costa
Hi, > > Memory notifications are quite irrelevant to partitioning and cgroups. The > use-case is related to user-space handling low memory. Meaning the > functionality should be accurate with specific granularity (e.g. 1 MB) and > time (0.25s is OK) but better to have it as simple and battery-fr

Re: Linux 3.7-rc6

2012-11-21 Thread Daniel Vetter
On Tue, Nov 20, 2012 at 11:39 AM, Henrik Rydberg wrote: >> drm/i915: do not ignore eDP bpc settings from vbt > > As advertised, this patch breaks the Macbook Pro Retina, which seems > unfair. The patch below is certainly not the best remedy, but it does > work. Tested on a MacbookPro10,1. M

Re: [PATCH] vhost-blk: Add vhost-blk support v5

2012-11-21 Thread Michael S. Tsirkin
On Wed, Nov 21, 2012 at 12:24:55PM +0800, Asias He wrote: > On 11/20/2012 09:37 PM, Michael S. Tsirkin wrote: > > On Tue, Nov 20, 2012 at 02:39:40PM +0800, Asias He wrote: > >> On 11/20/2012 04:26 AM, Michael S. Tsirkin wrote: > >>> On Mon, Nov 19, 2012 at 04:53:42PM +0800, Asias He wrote: > v

Re: [PATCH 14/14] mm: Account for WRITEBACK_TEMP in balance_dirty_pages

2012-11-21 Thread Maxim Patlasov
Added linux-mm@ to cc:. The patch can stand on it's own. > Make balance_dirty_pages start the throttling when the WRITEBACK_TEMP > counter is high enough. This prevents us from having too many dirty > pages on fuse, thus giving the userspace part of it a chance to write > stuff properly. > > Note

Re: [PATCH V4 1/4] [SCSI] drivers/scsi/ufs: Seggregate PCI Specific Code

2012-11-21 Thread vinayak holikatti
On Wed, Nov 21, 2012 at 4:26 PM, James Bottomley wrote: > On Wed, 2012-11-21 at 16:02 +0530, vinayak holikatti wrote: >> On Wed, Nov 14, 2012 at 2:56 AM, James Bottomley >> wrote: >> > On Thu, 2012-10-18 at 17:37 +0530, vinayak holikatti wrote: >> >> I am Vacation will look into it when i am back

Re: [PATCHv9 1/3] Runtime Interpreted Power Sequences

2012-11-21 Thread Tomi Valkeinen
On 2012-11-21 13:40, Thierry Reding wrote: > On Wed, Nov 21, 2012 at 01:06:03PM +0200, Tomi Valkeinen wrote: (sorry for bouncing back and forth with my private and my @ti addresses. I can't find an option in thunderbird to only use one sender address, and I always forget to change it when respondi

Re: [PATCH, v2] mm, numa: Turn 4K pte NUMA faults into effective hugepage ones

2012-11-21 Thread Mel Gorman
On Tue, Nov 20, 2012 at 05:52:39PM +0100, Ingo Molnar wrote: > > * Rik van Riel wrote: > > > Performance measurements will show us how much of an impact it > > makes, since I don't think we have never done apples to apples > > comparisons with just this thing toggled :) > > I've done a couple

Re: [PATCH] sign-file: fix the perl warning message when extracting ASN.1

2012-11-21 Thread David Howells
David Howells wrote: > There have the following warning message when running modules install for > sign ko files: > > # make modules_install > ... > INSTALL drivers/input/touchscreen/pcap_ts.ko > Found = in conditional, should be == at scripts/sign-file line 164. > Found = in conditional, sho

Re: [PATCH 37/46] mm: numa: Add THP migration for the NUMA working set scanning fault case.

2012-11-21 Thread Mel Gorman
On Wed, Nov 21, 2012 at 10:21:43AM +, Mel Gorman wrote: > Note: This is very heavily based on a patch from Peter Zijlstra with > fixes from Ingo Molnar, Hugh Dickins and Johannes Weiner. That patch > put a lot of migration logic into mm/huge_memory.c where it does > not belon

Re: [PATCH v3] devtmpfs: mount with noexec and nosuid

2012-11-21 Thread Alan Cox
> This instructs the kernel to include the MS_NOEXEC and MS_NOSUID mount > flags when mounting devtmpfs. So does a mount syscall > In-kernel separation of executable and non-executable code combined > with a proper executability policy is a basic technique to prote

[PATCH] tty: don't dead while flushing workqueue

2012-11-21 Thread Sebastian Andrzej Siewior
Since commit 89c8d91e31f2 ("tty: localise the lock") I see a dead lock in one of my dummy_hcd + g_nokia test cases. The first run one was usually okay, the second often resulted in a splat by lockdep and the third was usually a dead lock. Lockdep complained about tty->hangup_work and tty->legacy_mu

[PATCH 1/1] amba: tegra-ahb: Fix warning w/o PM_SLEEP

2012-11-21 Thread Hiroshi Doyu
Fix build warning w/o PM_SLEEP. Change-Id: Id5b7d089de835025b5708fa345a75990fd976363 Signed-off-by: Hiroshi Doyu --- drivers/amba/tegra-ahb.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/amba/tegra-ahb.c b/drivers/amba/tegra-ahb.c index bd5de08..0576a7d 100644 --- a/drivers/

[PATCH 1/1] memory: tegra30: Fix warning w/o PM_SLEEP

2012-11-21 Thread Hiroshi Doyu
Fix build warning w/o PM_SLEEP. Change-Id: I713f7dd697f1ad9fb1fee56b389b0d6c45bb540c Signed-off-by: Hiroshi Doyu --- drivers/memory/tegra30-mc.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/memory/tegra30-mc.c b/drivers/memory/tegra30-mc.c index 802b9ea..cf10b77 100644 --- a

Re: [PATCH 11/42] ARM: shmobile: Register PFC platform device

2012-11-21 Thread Laurent Pinchart
Hi Simon, On Wednesday 21 November 2012 14:16:33 Simon Horman wrote: > On Wed, Nov 21, 2012 at 03:27:12AM +0100, Laurent Pinchart wrote: > > Add arch code to register the PFC platform device instead of calling the > > driver directly. Platform device registration in the sh-pfc driver will > > be r

Re: [PATCH] fb: Rework locking to fix lock ordering on takeover

2012-11-21 Thread Josh Boyer
On Fri, Nov 16, 2012 at 2:27 PM, Alan Cox wrote: > > [The fb maintainer appears to be absent at the moment]. > > This is needed to fix a pile of lockdep splats that now show up because > console_lock() > is being properly audited. Hugh Dickins and Sasha Levin have tested it and > both reports >

Re: numa/core regressions fixed - more testers wanted

2012-11-21 Thread Hillf Danton
On Wed, Nov 21, 2012 at 12:10 PM, Hugh Dickins wrote: > On Tue, 20 Nov 2012, Rik van Riel wrote: >> On 11/20/2012 08:54 PM, Andrew Theurer wrote: >> >> > I can confirm single JVM JBB is working well for me. I see a 30% >> > improvement over autoNUMA. What I can't make sense of is some perf >> >

Re: [PATCH 1/1] amba: tegra-ahb: Fix warning w/o PM_SLEEP

2012-11-21 Thread Hiroshi Doyu
>From cd21894b640d456974920247d2a10421e78ba960 Mon Sep 17 00:00:00 2001 From: Hiroshi Doyu Date: Thu, 15 Nov 2012 08:27:41 +0200 Subject: [PATCH 1/1] amba: tegra-ahb: Fix warning w/o PM_SLEEP Fix build warning w/o PM_SLEEP. Signed-off-by: Hiroshi Doyu --- drivers/amba/tegra-ahb.c |2 ++ 1

Re: [PATCH 1/1] memory: tegra30: Fix warning w/o PM_SLEEP

2012-11-21 Thread Hiroshi Doyu
>From 2257f87f95c3982aac7c30389357db66f597c083 Mon Sep 17 00:00:00 2001 From: Hiroshi Doyu Date: Thu, 15 Nov 2012 08:28:39 +0200 Subject: [PATCH 1/1] memory: tegra30: Fix warning w/o PM_SLEEP Fix build warning w/o PM_SLEEP. Signed-off-by: Hiroshi Doyu --- drivers/memory/tegra30-mc.c |2 ++

Re: [PATCH] fb: Rework locking to fix lock ordering on takeover

2012-11-21 Thread Alan Cox
On Wed, 21 Nov 2012 07:45:45 -0500 Josh Boyer wrote: > On Fri, Nov 16, 2012 at 2:27 PM, Alan Cox wrote: > > > > [The fb maintainer appears to be absent at the moment]. > > > > This is needed to fix a pile of lockdep splats that now show up because > > console_lock() > > is being properly audite

[V2 PATCH 1/3] staging: ozwpan: Remove redundant null check before kfree in ozpd.c

2012-11-21 Thread Rupesh Gujare
Call kfree only if required else return from function. Signed-off-by: Sachin Kamat Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozpd.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ozwpan/ozpd.c b/drivers/staging/ozwpan/ozpd.c index 0b3

[V2 PATCH 0/3] staging : ozwpan: Remove NULL pointer check

2012-11-21 Thread Rupesh Gujare
This patch series removes NULL pointer check before kfree Rupesh Gujare (3): staging: ozwpan: Remove redundant null check before kfree in ozpd.c staging: ozwpan: Remove redundant null check before kfree in ozproto.c staging: ozwpan: Remove redundant null check before kfree in ozhcd.c d

[V2 PATCH 3/3] staging: ozwpan: Remove redundant null check before kfree in ozhcd.c

2012-11-21 Thread Rupesh Gujare
Call kfree only if required else return from function. Signed-off-by: Sachin Kamat Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index

[PATCH v3 01/19] perf, x86: Support CPU specific sysfs events

2012-11-21 Thread Stephane Eranian
From: Andi Kleen Add a way for the CPU initialization code to register additional events, and merge them into the events attribute directory. Used in the next patch. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/perf_event.c | 29 + arch/x86/kernel/cpu/perf_ev

[PATCH v3 03/19] perf/x86: add flags to event constraints

2012-11-21 Thread Stephane Eranian
This patch adds a flags field to each event constraint. It can be used to store event specific features which can then later be used by scheduling code or low-level x86 code. The flags are propagated into event->hw.flags during the get_event_constraint() call. They are cleared during the put_event

[PATCH v3 05/19] perf: add minimal support for PERF_SAMPLE_WEIGHT

2012-11-21 Thread Stephane Eranian
Ensure we grab the weight from raw sample struct and that we can dump it via perf report -D. Signed-off-by: Stephane Eranian --- tools/perf/util/event.h |1 + tools/perf/util/evsel.c |5 + tools/perf/util/session.c |3 +++ 3 files changed, 9 insertions(+) diff --git a/tools

[PATCH v3 07/19] perf: add generic memory sampling interface

2012-11-21 Thread Stephane Eranian
This patch adds PERF_SAMPLE_COST and PERF_SAMPLE_DSRC. The first collects a cost associated with the sampled event. In case of memory access, the cost would be the latency of the load, otherwise it defaults to the sampling period. PERF_SAMPLE_DSRC collects the data source, i.e., where did the data

[PATCH v3 08/19] perf/x86: add memory profiling via PEBS Load Latency

2012-11-21 Thread Stephane Eranian
This patch adds support for memory profiling using the PEBS Load Latency facility. Load accesses are sampled by HW and the instruction address, data address, load latency, data source, tlb, locked information can be saved in the sampling buffer if using the PERF_SAMPLE_COST (for latency), PERF_SAM

[PATCH v3 10/19] perf/x86: add support for PEBS Precise Store

2012-11-21 Thread Stephane Eranian
This patch adds support for PEBS Precise Store which is available on Intel Sandy Bridge and Ivy Bridge processors. To use Precise store, the proper PEBS event must be used: mem_trans_retired:precise_stores. For the perf tool, the generic mem-stores event exported via sysfs can be used directly. S

[PATCH v3 13/19] perf record: add support for mem access profiling

2012-11-21 Thread Stephane Eranian
Add the -l option to perf record to enable sampling access cost sampling. Data address sampling is obtained via the -d option. Signed-off-by: Stephane Eranian --- tools/perf/builtin-record.c |2 ++ tools/perf/perf.h |1 + tools/perf/util/evsel.c |6 ++ 3 files chan

[PATCH v3 14/19] perf tools: add new mem command for memory access profiling

2012-11-21 Thread Stephane Eranian
This new command is a wrapper on top of perf record and perf report to make it easier to configure for memory access profiling. To record loads: $ perf mem -t load rec . To record stores: $ perf mem -t store rec . To get the report: $ perf mem -t load rep Signed-off-by: Stephane Eranian

[PATCH v3 16/19] perf tools: detect data vs. text mappings

2012-11-21 Thread Stephane Eranian
Leverages the PERF_RECORD_MISC_MMAP_DATA bit in the RECORD_MMAP record header. When the bit is set then the mapping type is set to MAP__VARIABLE. Signed-off-by: Stephane Eranian --- tools/perf/util/machine.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/pe

[PATCH v3 19/19] perf tools: Fix output of symbol_daddr offset

2012-11-21 Thread Stephane Eranian
From: Namhyung Kim The symbol addresses in a dso have relative offsets from the start of a mapping. So in order to ouput correct offset value from @ip, one of them should be converted. Cc: Stephane Eranian Signed-off-by: Namhyung Kim --- tools/perf/util/sort.c |2 +- 1 file changed, 1 in

[PATCH v3 18/19] perf tools: Ignore ABS symbols when loading data maps

2012-11-21 Thread Stephane Eranian
From: Namhyung Kim When loading symbols in a data mapping, ABS symbols (which has a value of SHN_ABS in its st_shndx) failed at elf_getscn(). And it marks the loading as a failure so already loaded symbols cannot be fixed up. I'm not sure what should be done. Just ignore them for now. :) Cc: S

[PATCH v3 17/19] perf tools: Synthesize data mmap events for threads

2012-11-21 Thread Stephane Eranian
From: Namhyung Kim Current perf_event__synthesize_mmap_events() only deals with executable mappings. With upcoming memory access sampling, non-executable data mappings are needed also. While at it, convert parsing code to use sscanf which makes the code cleaner IMHO. Cc: Stephane Eranian Sign

[PATCH v3 15/19] perf: add PERF_RECORD_MISC_MMAP_DATA to RECORD_MMAP

2012-11-21 Thread Stephane Eranian
Type of mapping was lost and made it hard for a tool to distinguish code vs. data mmaps. Perf has the ability to distinguish the two. Use a bit in the header->misc bitmask to keep track of the mmap type. If PERF_RECORD_MISC_MMAP_DATA is set then the mapping is not executable (!VM_EXEC). If not set

[PATCH v3 11/19] perf tools: add mem access sampling core support

2012-11-21 Thread Stephane Eranian
This patch adds the sorting and histogram support functions to enable profiling of memory accesses. The following sorting orders are added: - symbol_daddr: data address symbol (or raw address) - dso_daddr: data address shared object - cost: access cost - locked: access uses locked transaction

[PATCH v3 00/16] perf: add memory access sampling support

2012-11-21 Thread Stephane Eranian
This patch series had a new feature to the kernel perf_events interface and corresponding user level tool, perf. With this patch, it is possible to sample (not trace) memory accesses (load, store). For loads, the instruction and data addresses are captured along with the latency and data source. F

<    1   2   3   4   5   >