Prev: [patch 0/2] pci: raw_spinlock annotations
Next: percpu: add __percpu sparse annotations to trace
From: Rik van Riel on 17 Feb 2010 11:40 On 02/12/2010 07:00 AM, Mel Gorman wrote: > This patch adds a per-node sysfs file called compact. When the file is > written to, each zone in that node is compacted. The intention that this > would be used by something like a job scheduler in a batch system before > a job starts so that the job can allocate the maximum number of > hugepages without significant start-up cost. > > Signed-off-by: Mel Gorman<mel(a)csn.ul.ie> Acked-by: Rik van Riel <riel(a)redhat.com> -- All rights reversed. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Greg KH on 19 Feb 2010 10:00 On Thu, Feb 18, 2010 at 06:02:40PM +0000, Mel Gorman wrote: > This patch adds a per-node sysfs file called compact. When the file is > written to, each zone in that node is compacted. The intention that this > would be used by something like a job scheduler in a batch system before > a job starts so that the job can allocate the maximum number of > hugepages without significant start-up cost. As you are adding sysfs files, can you please also add documentation for the file in Documentation/ABI/ ? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Mel Gorman on 19 Feb 2010 10:30 On Fri, Feb 19, 2010 at 06:53:59AM -0800, Greg KH wrote: > On Thu, Feb 18, 2010 at 06:02:40PM +0000, Mel Gorman wrote: > > This patch adds a per-node sysfs file called compact. When the file is > > written to, each zone in that node is compacted. The intention that this > > would be used by something like a job scheduler in a batch system before > > a job starts so that the job can allocate the maximum number of > > hugepages without significant start-up cost. > > As you are adding sysfs files, can you please also add documentation for > the file in Documentation/ABI/ ? > I looked at this before and hit a wall and then forgot about it. I couldn't find *where* I should document it at the time. There isn't a sysfs-devices-node file to add to and much (all?) of what is in that branch appears undocumented. -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Greg KH on 19 Feb 2010 10:40 On Fri, Feb 19, 2010 at 03:28:30PM +0000, Mel Gorman wrote: > On Fri, Feb 19, 2010 at 06:53:59AM -0800, Greg KH wrote: > > On Thu, Feb 18, 2010 at 06:02:40PM +0000, Mel Gorman wrote: > > > This patch adds a per-node sysfs file called compact. When the file is > > > written to, each zone in that node is compacted. The intention that this > > > would be used by something like a job scheduler in a batch system before > > > a job starts so that the job can allocate the maximum number of > > > hugepages without significant start-up cost. > > > > As you are adding sysfs files, can you please also add documentation for > > the file in Documentation/ABI/ ? > > > > I looked at this before and hit a wall and then forgot about it. I couldn't > find *where* I should document it at the time. There isn't a sysfs-devices-node > file to add to and much (all?) of what is in that branch appears undocumented. Well, you can always just document what you add, or you can document the existing stuff as well. It's your choice :) thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Mel Gorman on 19 Feb 2010 11:00 On Fri, Feb 19, 2010 at 03:51:17PM +0000, Mel Gorman wrote: > On Fri, Feb 19, 2010 at 07:31:42AM -0800, Greg KH wrote: > > On Fri, Feb 19, 2010 at 03:28:30PM +0000, Mel Gorman wrote: > > > On Fri, Feb 19, 2010 at 06:53:59AM -0800, Greg KH wrote: > > > > On Thu, Feb 18, 2010 at 06:02:40PM +0000, Mel Gorman wrote: > > > > > This patch adds a per-node sysfs file called compact. When the file is > > > > > written to, each zone in that node is compacted. The intention that this > > > > > would be used by something like a job scheduler in a batch system before > > > > > a job starts so that the job can allocate the maximum number of > > > > > hugepages without significant start-up cost. > > > > > > > > As you are adding sysfs files, can you please also add documentation for > > > > the file in Documentation/ABI/ ? > > > > > > > > > > I looked at this before and hit a wall and then forgot about it. I couldn't > > > find *where* I should document it at the time. There isn't a sysfs-devices-node > > > file to add to and much (all?) of what is in that branch appears undocumented. > > > > Well, you can always just document what you add, or you can document the > > existing stuff as well. It's your choice :) > > > > Fair point! > > I've taken note to document what's in there over time. For the moment, > is this a reasonable start? I'll split it into two patches but the end > result will be the same. > Bah, as I hit send, I recognised my folly. The first entry should be in stable/ and the second should be in testing/. > diff --git a/Documentation/ABI/testing/sysfs-devices-node b/Documentation/ABI/testing/sysfs-devices-node > new file mode 100644 > index 0000000..1ee348b > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-devices-node > @@ -0,0 +1,15 @@ > +What: /sys/devices/system/node/nodeX > +Date: October 2002 > +Contact: Linux Memory Management list <linux-mm(a)kvack.org> > +Description: > + When CONFIG_NUMA is enabled, this is a directory containing > + information on node X such as what CPUs are local to the > + node. > + > +What: /sys/devices/system/node/nodeX/compact > +Date: February 2010 > +Contact: Mel Gorman <mel(a)csn.ul.ie> > +Description: > + When this file is written to, all memory within that node > + will be compacted. When it completes, memory will be free > + in as contiguous blocks as possible. > > -- > To unsubscribe, send a message with 'unsubscribe linux-mm' in > the body to majordomo(a)kvack.org. For more info on Linux MM, > see: http://www.linux-mm.org/ . > Don't email: <a href=mailto:"dont(a)kvack.org"> email(a)kvack.org </a> > -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Next
|
Last
Pages: 1 2 3 4 Prev: [patch 0/2] pci: raw_spinlock annotations Next: percpu: add __percpu sparse annotations to trace |