01 dicembre 2009

Ottimizzare ext3 su RAID

Una domanda che mi sono sempre fatto, quando mi trovo a lavorare con un filesystem ext2/3 nuovo su volumi sempre più grandi, è come possa un filesystem praticamente invariato da decenni a supportare unità logiche di centinaia di GB senza in qualche modo "accusare il colpo". Per questo preferisco filesystem più moderni ma, ahimè, non supportati o non mainstream sotto Linux.

ext3 per altro verso presenta caratteristiche molto interessanti per Oracle: supporta il direct I/O e l'I/O asincrono, due feature molto importanti per massimizzare le prestazioni di un database sotto Linux. Ma i 4 KB di dimensione massima del blocco e la struttura abbastanza tradizionale del filesystem mi lasciano perplesso di fronte a unità logiche di qualche terabyte.
Pensiamo ad esempio ai nuovi filesystem come btrfs o ZFS (due a caso :-)). Praticamente non c'è paragone tra ext3 e i filesystem di nuova generazione.

Mentre aspettiamo che Linux si decida ad adottare un filesystem di livello enterprise e con caratteristiche moderne, possiamo massimizzare almeno le prestazioni di ext3 adattandolo all'astrazione dell'hardware sottostante con cui ci troviamo ad operare, tipicamente un'unità RAID.

Dobbiamo considerare che alcuni livelli RAID, come il RAID5, soffrono di lentezze strutturali in scrittura a causa del calcolo di parità, arrivando al massimo delle performance solo quando viene effettuata una scrittura di una stripe completa. Durante la creazione di un volume RAID è solitamente possibile specificare la stripe size, da pochi KB fino a circa 256 KB e oltre.

ext3 ha un paio di parametri che aiutano a ottimizzare il filesystem in scrittura: stride e stripe-width.

stride è il numero di blocchi di filesystem che servono per scrivere una stripe (nel caso ext3 un blocco è di 4 KB praticamente sempre).
stripe-width è la quantità di blocchi che servono a coprire una scrittura completa su tutti i dischi che "portano" dati, multiplo intero della stride.
Mi spiego meglio con un esempio: RAID5 usa una parità distribuita che risulta in uno spazio disponibile di n-1 dischi, quindi con una certa stripe size verranno scritte n-1 stripe che "portano dati" sui dischi, e 1 stripe di parità; questa è la stripe width, e per ext3 si misura in blocchi e corrisponde a stride*(n-1)*blocksize nel caso di RAID5.

C'è un documento di Centos sull'ottimizzazione di ext3 con l'ottimizzazione per il RAID nell'ultimo paragrafo, anche se c'è qualche errore di notazione. Il fatto che stripe-width sia stato rimosso da Centos 5.3 corrisponde a verità purtroppo anche per RHEL. Non riesco a spiegarmi questo fatto, quando sulla mia Ubuntu desktop è ben presente.

Qualcuno si è creato anche la calcolatrice apposita, che potete trovare qui: http://busybox.net/~aldot/mkfs_stride.html

4 commenti:

Anonimo ha detto...

Sorry for my bad english. Thank you so much for your good post. Your post helped me in my college assignment, If you can provide me more details please email me.

Anonimo ha detto...

Exactly where all the men of all ages happen to be bothered, most of the [url=http://thenorthfacefactory.weebly.com/][b]North Face Denali Jackets[/b][/url] were first the the very least, unpredictable. From wasp waistline and additionally frock layers for the 1830s to dandy and additionally sober carrier caters to and additionally Norfolk short coat for the 1901, all the impact was first finally noticed. Usually in the the middle of 18th one [b]North Face Jackets[/b], unconventional utilize want neckties and additionally scarves have become increasingly popular by means of men of all ages. Tshirts happen to be ordinarily produced with page and additionally happen to be normally on the window treatments about schokohutige and additionally off white.You aquire all of the somewhat determination, window treatments, creations and additionally proportions attainable via the web. Prior to when selecting all of these North Face Jackets search for the information. Determine any time a lot more irritated you prefer. All the present day North Face Jackets by [url=http://thenorthfacefactory.weebly.com/][b]North Face Outlet[/b][/url] marks apply all of these creations which might be handed down right from family, and certain, if he does not a large number of, expect to have an essence for the [b][url=http://thenorthfacefactory.weebly.com/]North Face Factory[/url][/b] additionally. Find these sort of elements, you are able to frequently get on the web and additionally get together what you must have.

Anonimo ha detto...

http://www.site.com - [url=http://www.site.com]site[/url] site
site

Anonimo ha detto...

The business provides a single [url=http://cungmuagiatot.com/thoi-trang.html]gia re hom nay[/url] for each and every day in each of the marketplaces it serves. The Groupon operates as an assurance arrangement utilizing ThePoint's technique: if a distinct variety of men and women sign up for the provide, then the offer becomes provided to all if the predetermined bare minimal is not achieved, no one particular will get the offer that doing work day. This minimizes risk for suppliers, who can handle the price reduction discount codes as amount specific special discounts as nicely as solution product sales advertising tools. Groupon tends to make cash by retaining approximately fifty percent the earnings the buyer pays for the coupon.

For situation in position, an $eighty therapeutic therapeutic massage could be bought by the buyer for $forty by means of Groupon, and then Groupon and the retailer would break up the $forty. That is, the retailer offers a therapeutic therapeutic massage valued at $eighty and receives roughly $twenty from Groupon for it (beneath a fifty%/fifty% break up). Or, if $240 properly worth of home portray companies is obtained by the consumer for $fifty through Groupon, then the enterprise receives $20 five and Groupon retains $twenty five. The customer will get the therapeutic massage, or the residence painting supplier, in these examples, from the retailer for which they at first paid out $forty (or $50) to Groupon. There are particular corporations to which Groupon at 1st did not supply its providers, such as capturing ranges and strip golf tools nonetheless, capturing ranges have been highlighted on Groupon.

As opposed to categorised marketing and advertising, the service supplier does not pay out any upfront expense to take part: Groupon collects individual data from inclined consumers and then contacts only people consumers, largely by everyday digital mail, who may most likely be fascinated in a distinct remedy or support.

Groupon employs a enormous range of copywriters who draft descriptions for the offers showcased by e mail and on the website. Groupon's marketing textual content for the 'deals' has been noticed as a contributing factor to the recognition of the web site, showcasing a distinctive blend of complete reality-examining and witty humor.

Owing to Groupon's industry obtaining mainly composed of woman customers, the bargains are regularly concentrated on the wellness, wellness and attractiveness markets.

There are prospective difficulties with the firm style. For illustration, a productive supply could briefly swamp a small organization with way as well many customers, jeopardizing a possibility that consumers will be dissatisfied, or that there won't be sufficient products to fulfill the need. Gap, a substantial apparel retailer, was completely ready to deal with 445,000 discount discount coupons in a national deal (despite the fact that it experienced server troubles at 1 particular degree), but a more compact sized organization could grow to be abruptly flooded with buyers. 1 coffee retailer in Portland, Oregon struggled with an boost in customers for three months, when it acquired shut to 1,000 Groupons on the one particular certain working working day it was supplied, in accordance to one report. In response to equivalent concerns, Groupon officers point out that 'deal' subscriptions ought to be capped in development to a affordable assortment.

Read More: [url=http://thoitrangkhuyenmai.org/chon-mua-hang-cong-nghe-o-trang-web-gia-re/]deal gia re[/url]