lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20070511100947.470a764d.kamezawa.hiroyu@jp.fujitsu.com>
Date:	Fri, 11 May 2007 10:09:47 +0900
From:	KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To:	Christoph Lameter <clameter@....com>
Cc:	y-goto@...fujitsu.com, linux-mm@...ck.org,
	linux-kernel@...r.kernel.org, akpm@...l.org, mel@....ul.ie
Subject: Re: [RFC] memory hotremove patch take 2 [01/10] (counter of
 removable page)

On Thu, 10 May 2007 11:00:31 -0700 (PDT)
Christoph Lameter <clameter@....com> wrote:

> On Wed, 9 May 2007, Yasunori Goto wrote:
> 
> >  
> > +unsigned int nr_free_movable_pages(void)
> > +{
> > +	unsigned long nr_pages = 0;
> > +	struct zone *zone;
> > +	int nid;
> > +
> > +	for_each_online_node(nid) {
> > +		zone = &(NODE_DATA(nid)->node_zones[ZONE_MOVABLE]);
> > +		nr_pages += zone_page_state(zone, NR_FREE_PAGES);
> > +	}
> > +	return nr_pages;
> > +}
> 
> 
> Hmmmm... This is redoing what the vm counters already provide
> 
> Could you add
> 
> NR_MOVABLE_PAGES etc.
> 
> instead and then let the ZVC counter logic take care of the rest?
> 
Okay, we'll try ZVC.

Thanks,
-Kame

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ