Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 147784 Details for
Bug 147679
kernel dm striped: device has a worse reading speed using a larger disk stripe
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch
dm-striped-readahead.patch (text/plain), 1.35 KB, created by
Milan Broz
on 2007-02-09 16:05:49 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Milan Broz
Created:
2007-02-09 16:05:49 UTC
Size:
1.35 KB
patch
obsolete
>Calculate correct readahead for the striped target >to avoid read performance degradation. > >(using the same strategy like md raid0 driver) > >Signed-off-by: Milan Broz <mbroz@redhat.com> > >Index: linux-2.6.9/drivers/md/dm-stripe.c >=================================================================== >--- linux-2.6.9.orig/drivers/md/dm-stripe.c 2007-02-09 16:54:28.000000000 +0100 >+++ linux-2.6.9/drivers/md/dm-stripe.c 2007-02-09 16:55:02.000000000 +0100 >@@ -69,13 +69,15 @@ static int get_stripe(struct dm_target * > */ > static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) > { >+ struct mapped_device *md = NULL; >+ struct backing_dev_info *rd_bdi; > struct stripe_c *sc; > sector_t width; > uint32_t stripes; > uint32_t chunk_size; > char *end; > int r; >- unsigned int i; >+ unsigned int i, ra_stripe; > > if (argc < 2) { > ti->error = "dm-stripe: Not enough arguments"; >@@ -158,6 +160,20 @@ static int stripe_ctr(struct dm_target * > } > } > >+ /* >+ * set read-ahead to 2 * whole stripe >+ * (if the devices have greater readahead, >+ * user should increase chunksize) >+ */ >+ md = dm_table_get_md(ti->table); >+ rd_bdi = &dm_disk(md)->queue->backing_dev_info; >+ ra_stripe = sc->stripes * (ti->split_io << SECTOR_SHIFT) / PAGE_SIZE; >+ >+ if (rd_bdi->ra_pages < 2 * ra_stripe) >+ rd_bdi->ra_pages = 2 * ra_stripe; >+ >+ dm_put(md); >+ > ti->private = sc; > return 0; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 147679
:
147784