All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shaohua Li <shli@kernel.org>
To: Hugh Dickins <hughd@google.com>
Cc: Kyungmin Park <kmpark@infradead.org>,
	Minchan Kim <minchan@kernel.org>,
	lsf-pc@lists.linux-foundation.org, linux-mm@kvack.org,
	Rik van Riel <riel@redhat.com>,
	Simon Jeons <simon.jeons@gmail.com>
Subject: Re: [LSF/MM TOPIC]swap improvements for fast SSD
Date: Tue, 19 Feb 2013 14:15:12 +0800	[thread overview]
Message-ID: <20130219061512.GA14921@kernel.org> (raw)
In-Reply-To: <alpine.LNX.2.00.1302032039540.4662@eggly.anvils>

On Sun, Feb 03, 2013 at 08:56:15PM -0800, Hugh Dickins wrote:
> On Sun, 27 Jan 2013, Shaohua Li wrote:
> > On Sat, Jan 26, 2013 at 01:40:55PM +0900, Kyungmin Park wrote:
> > > 5. SSD related optimization, mainly discard support.
> > > 
> > > Now swap codes are based on each swap slots. it means it can't
> > > optimize discard feature since getting meaningful performance gain, it
> > > requires 2 pages at least. Of course it's based on eMMC. In case of
> > > SSD. it requires more pages to support discard.
> > > 
> > > To address issue. I consider the batched discard approach used at filesystem.
> > > *Sometime* scan all empty slot and it issues discard continuous swap
> > > slots as many as possible.
> > 
> > I posted a patch to make discard async before, which is almost good to me,
> > though we still discard a cluster. 
> > http://marc.info/?l=linux-mm&m=135087309208120&w=2
> 
> Any reason why you point to 2012/10/22 patch rather than the 2012/11/19?
> 
> Seeing this reminded me to take your 1/2 and 2/2 (of 11/19) out again and
> give them a fresh run - though they were easier to apply to 3.8-rc rather
> than mmotm with your locking changes, so it was 3.8-rc6 I tried.
> 
> As I reported in private mail last year, I wish you'd remove the "buddy"
> from description of your 1/2 allocator, that just misled me; but I've not
> experienced any problem with the allocator, and I still like the direction
> you take with improving swap discard in 2/2.
> 
> This time around I've not yet seen any "swap_free: Unused swap offset entry"
> messages (despite forgetting to include your later SWAP_MAP_BAD addition to
> __swap_duplicate() - I still haven't thought that through to be honest),
> but did again get the VM_BUG_ON(error == -EEXIST) in __add_to_swap_cache()
> called from add_to_swap() from shrink_page_list().
> 
> Since it came after 1.5 hours of load, I didn't give it much thought,
> and just went on to test other things, thinking I could easily reproduce
> it later; but have failed to do so in many hours since.  Still trying.

Missed this mail, sorry. I'm planing to repost the patches against linux-next (because
of the locking changes) and will include the SWAP_MAP_BAD change. I did see
problems without the SWAP_MAP_BAD change.

Thanks,
Shaohua

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2013-02-19  6:15 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-22  6:53 [LSF/MM TOPIC]swap improvements for fast SSD Shaohua Li
2013-01-23  7:58 ` Minchan Kim
2013-01-23 19:04   ` Seth Jennings
2013-01-24  1:40     ` Minchan Kim
2013-01-24  8:29       ` Simon Jeons
2013-01-24  2:02   ` Shaohua Li
2013-01-24  7:52   ` Simon Jeons
2013-01-24  9:09   ` Simon Jeons
2013-01-26  4:40     ` Kyungmin Park
2013-01-27  0:26       ` Simon Jeons
2013-01-27 14:18       ` Shaohua Li
2013-01-28  7:37         ` Kyungmin Park
2013-02-01 12:37           ` Kyungmin Park
2013-02-04  4:56         ` Hugh Dickins
2013-02-19  6:15           ` Shaohua Li [this message]
2013-02-19 19:41             ` Hugh Dickins
2013-04-05  0:17   ` Simon Jeons
2013-04-05  8:08     ` Minchan Kim
2013-01-23 16:56 ` Seth Jennings
2013-01-24  6:28 ` Simon Jeons
2013-03-15  9:39 ` Simon Jeons
2013-03-18 10:38   ` Bob Liu
2013-03-19  1:27     ` Shaohua Li
2013-03-19  1:32       ` Simon Jeons
2013-03-19  5:57         ` Shaohua Li
2013-03-19  6:10           ` Simon Jeons
2013-03-19  4:25       ` Wanpeng Li
2013-03-19  4:25       ` Wanpeng Li
2013-04-28  8:12 ` Simon Jeons
     [not found] <766b9855-adf5-47ce-9484-971f88ff0e54@default>
2013-01-23 23:05 ` Dan Magenheimer
2013-01-24  2:11   ` Shaohua Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130219061512.GA14921@kernel.org \
    --to=shli@kernel.org \
    --cc=hughd@google.com \
    --cc=kmpark@infradead.org \
    --cc=linux-mm@kvack.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    --cc=minchan@kernel.org \
    --cc=riel@redhat.com \
    --cc=simon.jeons@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.