Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-06-27 Thread Shaohua Li
On Sun, May 26, 2013 at 01:31:55AM -0300, Rafael Aquini wrote: > This patch introduces SWAP_FLAG_DISCARD_PAGES and SWAP_FLAG_DISCARD_ONCE > new flags to allow more flexibe swap discard policies being flagged through > swapon(8). The default behavior is to keep both single-time, or batched, area >

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-06-27 Thread Shaohua Li
On Sun, May 26, 2013 at 01:31:55AM -0300, Rafael Aquini wrote: This patch introduces SWAP_FLAG_DISCARD_PAGES and SWAP_FLAG_DISCARD_ONCE new flags to allow more flexibe swap discard policies being flagged through swapon(8). The default behavior is to keep both single-time, or batched, area

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-26 Thread KOSAKI Motohiro
On Sun, May 26, 2013 at 11:30 AM, Rafael Aquini wrote: > On Sun, May 26, 2013 at 10:55:32AM -0400, KOSAKI Motohiro wrote: >> On Sun, May 26, 2013 at 9:52 AM, Rafael Aquini wrote: >> > On Sun, May 26, 2013 at 07:44:56AM -0400, KOSAKI Motohiro wrote: >> >> > + /* >> >> > +

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-26 Thread Rafael Aquini
On Sun, May 26, 2013 at 10:55:32AM -0400, KOSAKI Motohiro wrote: > On Sun, May 26, 2013 at 9:52 AM, Rafael Aquini wrote: > > On Sun, May 26, 2013 at 07:44:56AM -0400, KOSAKI Motohiro wrote: > >> > + /* > >> > +* By flagging sys_swapon, a sysadmin can

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-26 Thread KOSAKI Motohiro
On Sun, May 26, 2013 at 9:52 AM, Rafael Aquini wrote: > On Sun, May 26, 2013 at 07:44:56AM -0400, KOSAKI Motohiro wrote: >> > + /* >> > +* By flagging sys_swapon, a sysadmin can tell us >> > to >> > +* either do sinle-time

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-26 Thread Rafael Aquini
On Sun, May 26, 2013 at 07:44:56AM -0400, KOSAKI Motohiro wrote: > > + /* > > +* By flagging sys_swapon, a sysadmin can tell us to > > +* either do sinle-time area discards only, or to > > just > > +*

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-26 Thread KOSAKI Motohiro
> + /* > +* By flagging sys_swapon, a sysadmin can tell us to > +* either do sinle-time area discards only, or to just > +* perform discards for released swap page-clusters. > +*

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-26 Thread KOSAKI Motohiro
+ /* +* By flagging sys_swapon, a sysadmin can tell us to +* either do sinle-time area discards only, or to just +* perform discards for released swap page-clusters. +* Now

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-26 Thread Rafael Aquini
On Sun, May 26, 2013 at 07:44:56AM -0400, KOSAKI Motohiro wrote: + /* +* By flagging sys_swapon, a sysadmin can tell us to +* either do sinle-time area discards only, or to just +* perform

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-26 Thread KOSAKI Motohiro
On Sun, May 26, 2013 at 9:52 AM, Rafael Aquini aqu...@redhat.com wrote: On Sun, May 26, 2013 at 07:44:56AM -0400, KOSAKI Motohiro wrote: + /* +* By flagging sys_swapon, a sysadmin can tell us to +* either do sinle-time

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-26 Thread Rafael Aquini
On Sun, May 26, 2013 at 10:55:32AM -0400, KOSAKI Motohiro wrote: On Sun, May 26, 2013 at 9:52 AM, Rafael Aquini aqu...@redhat.com wrote: On Sun, May 26, 2013 at 07:44:56AM -0400, KOSAKI Motohiro wrote: + /* +* By flagging sys_swapon, a

Re: [PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-26 Thread KOSAKI Motohiro
On Sun, May 26, 2013 at 11:30 AM, Rafael Aquini aqu...@redhat.com wrote: On Sun, May 26, 2013 at 10:55:32AM -0400, KOSAKI Motohiro wrote: On Sun, May 26, 2013 at 9:52 AM, Rafael Aquini aqu...@redhat.com wrote: On Sun, May 26, 2013 at 07:44:56AM -0400, KOSAKI Motohiro wrote: +

[PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-25 Thread Rafael Aquini
This patch introduces SWAP_FLAG_DISCARD_PAGES and SWAP_FLAG_DISCARD_ONCE new flags to allow more flexibe swap discard policies being flagged through swapon(8). The default behavior is to keep both single-time, or batched, area discards (SWAP_FLAG_DISCARD_ONCE) and fine-grained discards for

[PATCH 01/02] swap: discard while swapping only if SWAP_FLAG_DISCARD_PAGES

2013-05-25 Thread Rafael Aquini
This patch introduces SWAP_FLAG_DISCARD_PAGES and SWAP_FLAG_DISCARD_ONCE new flags to allow more flexibe swap discard policies being flagged through swapon(8). The default behavior is to keep both single-time, or batched, area discards (SWAP_FLAG_DISCARD_ONCE) and fine-grained discards for