From: Hannes Reinecke <hare@suse.de>
To: lsf10-pc@lists.linuxfoundation.org
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: [LFS/VM TOPIC] Barriers and SYNCHRONZIE_CACHE
Date: Tue, 25 May 2010 13:00:57 +0200 [thread overview]
Message-ID: <4BFBADE9.4060904@suse.de> (raw)
Hi all,
[Topic]
Barriers and SYNCHRONIZE CACHE
[Abstract]
In recent years some design flaws in the barriers implementation
became apparent:
- No indication about _which_ blocks to flush, so all outstanding
blocks are flushed
- No error handling for SYNCHRONIZE CACHE
- SYNCHRONIZE CACHE affects all I/Os, so if a LUN is used by
several virtual guests _all_ guests are affected
- SYNCHRONIZE CACHE has a rather severe performance impact
on RAID controllers (if executed directly)
To overcome these issues I would propose to modify the
barrier interface so that individual blocks can be
marked as 'flushing'/'immediate'. This would allow
the lower layers (eg. SCSI midlayer) to restrict
the barriers operation on the affected blocks only.
EG the SYNCHRONIZE_CACHE operation could be updated
with a block list. Or more advanced methods (like FUA
or tagging) could be used, avoiding the need to issue
a SYNCHRONIZE CACHE altogether.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2010-05-25 11:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-25 11:00 Hannes Reinecke [this message]
2010-05-25 11:41 ` [Lsf10-pc] [LFS/VM TOPIC] Barriers and SYNCHRONZIE_CACHE Jens Axboe
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=4BFBADE9.4060904@suse.de \
--to=hare@suse.de \
--cc=linux-scsi@vger.kernel.org \
--cc=lsf10-pc@lists.linuxfoundation.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).