dcsimg

Linux 2.6.37: Scalability Improvements Abound

While 2.6.37 might be considered a quiet release, there are some very nice scalability improvements for file systems and one cool new feature that warrant a review.

This year’s holiday kernel was 2.6.37, which was actually released on 4 January 2011 (perhaps it’s a New Year’s kernel) and is a good example of a kernel release during the holidays. At first glance, one would think that it was a quiet kernel with no flaming articles on the web or some seriously flawed benchmarks being posted, but you didn’t see too much of that. However, there are some great things that happened in 2.6.37 around file systems and one really cool feature that I’ll talk about at the end of the article.

Improvements for ext4

Ext4 is the proverbial little engine that could. The file system has proven to have remarkably great performance and it solves many (most) of the issues with ext3. However, it is still really limited to 16 TB because the user space tools have not been updated yet (good project if anyone is interested). In 2.6.37, several really cool features were added to ext4, primarily around scalability.

Systems are getting more cores faster than we may realize. A four-socket AMD system that has 12-cores per socket resulting in a total of 48 cores in a single system, is a fairly affordable server. In the 2.6.37 kernel, scalability improvement patches were added to ext4. In particular, ext4 will now use the “bio” layer directly rather than use the intermediate “buffer” layer. The basic reason is that buffer layer has a number of performance and SMP scalability issues. The bio layer (bio = Block I/O) is the part of the kernel that sends the requests to the I/O scheduler allowing performance and scalability to improve.

An example of the scalability improvement was that a ffsb benchmark on a 48-core AMD system using a 24-disk hardware RAID array with 192 simultaneous ffsb threads improved performance by 300% (400% if journaling was disabled) compared to performance before this patch was applied. Moreover, CPU usage was reduced by a factor of 3-4 in the benchmark.

In addition to the scalability patches for ext4, 2.6.37 added a couple of cool new features. The first one is that mke2fs, the command to create an ext based file system, now has the ability to leave the inode table uninitialized. This means that the creation of an ext4 file system can now happen very quickly whereas before the inode table had to be constructed taking some time. However, the inode table has to be initialized as quickly as possible for the file system to be useful. So on the first mount of the file system, the kernel runs a kernel thread that will initialize the table.

The second patch added batched discard support to ext4. This may sound uneventful, but it has a big improvement in one area – SSD’s. Recall that the TRIM command in SSD’s can result in much better overall performance because the blocks are marked for erasing which is done only when needed. In Linux, the basic concept of TRIM is called discard. So this patch adds the ability to do batched discards (multiple blocks) allowing the entire file system to be “trimmed” if needed. So far, ext4 is the first file system in Linux to support batched discards.

In addition to these two major new features in ext4, there was a somewhat minor one that is useful nonetheless. In 2.6.37 a patch was added that allows ext4 to list or “advertise” the features of the particular version of ext4 in sysfs. More specifically, there is a “features” directory in /sys/fs/ext4 that advertises what features are available in ext4 in the running kernel. That can be very useful for people wanting to know, or needing to know, exactly what features are available in the particular version of ext4.

Scalability improvements in xfs

Xfs is one of the highest performing file systems in Linux for certain workloads. It is very popular in the HPC (High Performance Computing) crowd because of the excellent file performance, particularly for larger files. However, it has the reputation of not having very good metadata performance. It is still under heavy development and many of the recent patches have been targeting metadata performance.

In the 2.6.37 kernel release, xfs gained some scalability performance improvements. In particular, the scalability of xfs metadata workload performance improved. For example, on an 8-way system, running the fs_mark benchmark for an instance of 50 million files, improved the performance by over 15%. The performance of the removal of those files improved by over 100%.

Of course other improvements and features were added to xfs in 2.6.37. In a previous article I mentioned a new logging option (delayed logging) was added in the 2.6.35 kernel that can greatly improve I/O bandwidth for the log by several orders of magnitude. This can greatly improve metadata performance for really heavy metadata workloads. In 2.6.37, a patch was added that removed the “experimental” label from delayed logging making it production ready.

Other improvements/changes added to xfs in 2.6.37 are:


  • Project quotes to support 32-bit project ids were added
  • XFS_IO_ZERO_RANGE was introduced which is a function that enables files to quickly zero ranges of files without changing the layout of the file in any way
  • The cache hash was converted to use rbtree in this patch. This was done because the buffer cache hash was showing scalability problems. By switching to rbtrees performance the performance and scalability should be greatly improved, particularly for systems doing a great deal of I/O.

Btrfs improvements

Everyone’s favorite file-system-in-development, btrfs, had some interesting patches added in 2.6.37. Overall, if you watch the btrfs mailing list, you will see lots of active testing of btrfs. This has resulted in a number of good patches even if they aren’t adding significant new “features”. Several of the patches can be considered “major” while there are also some very good “minor” patches as well.

Probably the most significant feature added to btrfs is to cache the free space information on disk. It sounds kind of confusing so let me explain. Before this patch, if btrfs had to allocate from a block group that was not previously cached, it had to scan the entire extent-tree (i.e. it took a great deal of time and resources to find available block groups). After this patch, every time a transaction is committed producing a dirtied block group, the free space is dumped to the on-disk free space cache. So finding available block groups is a simple lookup greatly improving performance for this situation.

This patch results in an disk format change for btrfs. Recall that it is still in development so don’t be surprised by any disk format changes. However, you can mount existing btrfs file systems so that this option is not used. In fact, currently, you have to enable this new option using the “-o space_cache” mount option.

Another major feature that was added to btrfs in 2.6.37 was asynchronous snapshot creation. The benefit of this features is that you don’t have to wait for a new snapshot to be committed to the disk. You can use this feature by adding “async” to the “btrfs subvolume snapshot” command.

Believe it or not, the asynchronous snapshot creation capability was added primarily with ceph in mind. Remember that ceph was added a few kernel versions ago and is a distributed parallel file system that is still under heavy development. Ceph uses btrfs as the underlying file system (Ceph can arguably be called a meta file system since it is file system on top of a file system). There is more on Ceph itself later in this article.

A somewhat minor feature that was added to btrfs in the recently released 2.6.37 kernel is the ability to delete sub-volumes by unprivileged users. However, the user can only delete the sub-volume if they have “write” and “execute” permission on the sub-volume root inode. Otherwise they don’t have permission to delete it. The option “-o user_subvol_rm_allowed” can be used during the mounting of btrfs to enable this option.

An additional minor feature was added that switched from extent buffer rbtrees to a radix tree. This switch should reduce CPU time spent in the extent buffer search and improve performance for some operations (see the commit link for more details).

The last feature for btrfs that I want to mention is all around chunk allocation tuning. This particular patch allows data and metadata block groups to be mixed. According to the kernel newbies article on 2.6.37 this should be useful for small storage devices.

Comments on "Linux 2.6.37: Scalability Improvements Abound"

This is my first time visit at here and i am actually pleassant
to read everthing at alone place.

At this time I am going away to do my breakfast, after having my
breakfast coming yet again to read other news.

Below you will locate the link to some web sites that we consider you’ll want to visit.

Check beneath, are some entirely unrelated web-sites to ours, on the other hand, they’re most trustworthy sources that we use.

Here is a superb Weblog You might Locate Fascinating that we encourage you to visit.

Here is a great Weblog You may Locate Fascinating that we encourage you to visit.

Wonderful story, reckoned we could combine some unrelated data, nonetheless actually really worth taking a search, whoa did one particular find out about Mid East has got more problerms too.

Always a large fan of linking to bloggers that I love but really don’t get quite a bit of link appreciate from.

How can I prevent my blogspot from showing up in search engines?

We like to honor numerous other internet internet sites on the internet, even though they aren?t linked to us, by linking to them. Underneath are some webpages worth checking out.

For starters, nothing is inappropriate together with caring
you can eat. There are a few people who stay to eat as well
as tbere are several exactly who try to eat to live
on. But the total human race won’t belong to often of the types.

There are several exactly who really like good meals, buut thee lifestyles be bawsed
upon the meal. Pub foods Cheshire is actually liked in lots of regions and
should you be somee sort of foodstuff fan, you will nwed to expertise the type of foods you willl get right here.
Go to a spouse and children bar Cheshire and you’ll enjoyy the very best food along with beveragess together
with your complete loved ones. You’ll find nothing inappropriate having adoring to eat.
There are several peole who stay to consume as well as there are several that consuume to live.
However the total human race isn’t goingg to are part of possibly these
groups. There are several which really like great food, however
their own lives rely onn thhe foodstuff. Barr foodstuff Cheshire will be adored in many places as well as in case you are a meals
lover, you have to knowledge the kind of fods you obtain the
following. Check out a loved ones bar Chesbire and you can benefit
ffrom the ideal meal along with beverages along with your total loved ones.
The phrase club is frequently linked tto grown ups.
The best bars in the country arre usually active by
means of sports activities lovers which ador to observe the squads challenge this available because
they sip beer along with lager etc. Nevertheless it’s not important tat the young children cannot go to a pub.
Yes, there are a few cafes that you would noot want to take young kids to.Although a family group bar
Cheshire just isn’t between most of these shops.
Thhis club meals Cheshire on this bar is so excellent in which
everybody grows to delight in in some way or additional. Thhis particular family members pub
Cheshhire affords thhe finest with Uk meal. You’ll find
a lot of people indicating in which United kingdom meal is not as well as the foodsstuff that is certainly geared up inside the some other nations suc as France along with Spakn and the like.
Furthermore, the inftlux involving Indian curries features
additional transformed yoir colour scheme from tthe English foodies.
However to tell the truth that British foods offers its own great
flavor. Consumed standard United kingdom foodstuff therefore
you arre not able to aid yet virtually lick ones arms.

Without a doubt, the item issues that this cooking iss excellent, although after you go to a good option pertaining to pub
food Cheshire, you may expect the actual chef to get towards the
top of their particular cooking talent. In this family tavern Cheshire you will get anything you
wish tto consume and take in. Within the beverages section you have optimum cask beers, United
kingdom as well aas imported lager, ckder and
a comprehensive assortment of bottles oof wine. The meal
menus ccan bbe comprehensive andd also yoou have the choice to select from this diner food
list, the 2-for-1 food list, thee particular tavern food selection along
with the Sunday selection. The mouth-watering dinners tend to
be destined to produc you arre feeling in excess of pleased.
If you would like obtaining this bar meal Cheshire, visit the web site as well as look at the
actul food selection. Everything that you’ll require
will be provided inside internet site like number to phone to make ones
booking. With weekdays youu could possibly get to your bistro and discover a spot, however while in weekends,
it’s foolhardy lpoking to find a spot and not usiong a reservation. Naturally, it’s wise in order to pre-book beforehand
irrespective oof whenevrr you are. Learn more online to small sample superb club meals Cheshire.
As of this family club Cheshire you cann have all those foods that produce anyone satisfied.

The codts are nicely affordable, thouvh the
foods is just outside thee entire world.

My weblog … indo porn streaming

Usually posts some very interesting stuff like this. If you are new to this site.

A big thank you for your article post.Really looking forward to read more. Want more.

We came across a cool site that you just might love. Take a search should you want.

What’s up, I want to subscribe for this website to get newest updates,
thus where can i do it please help.

First of all, absolutely nothing is incorrect along with caring yyou can eat.
There aare several individuals who dwell you can eat andd also thdre are many which try to eat to resixe in. Nevertheless
the total human race will not are part of sometimes off these
types. There are many whom adore beneficial meals, however their life depend on thier food.
Nightclub food Cheshire iss adored in most parts of thee country as
well as if you’re the foodstuff partner, you have to
encounter the kind oof food you have below.

Check out a spose and childrn barr Chesire and you may enjoy the vry best
foodstuff alon with drinks using your total spouse and children. You’ll find
nothing incorrect having warm you can eat.
There are some those who reside tto enjoy aas well as there are numerois exactly who try to
eatt to live. But the entire people won’t remain in either thee
different types. There are numerous exactly who love very good meal,
nevertheless their particular day-to-day lives count on the meals.
Nightclub meals Cheshire is actually beloved in several parts of the country and if you are
the foodstuff partner, you need to practical knowledge the kind of meall you wipl gget
thhe following. Search for a family members pub Cheshire and benefit from the grewatest
mesls and cocktails with all your whole loved ones.
The term puub iss generally connected with older people.
The most important bars in the country are often busy simply
by athletics lovers that wish to observe their particular groups battle the idewa away wben they glass
alle and beer and so on. However it isn’t required that
your little ones cannot visit a bar. Sure, there are several bars which you wouldn’t
like to get your kids for youu to. Yet a household bar Cheshire isn’t amid
most of these establishments. Your nightclub meals Cheshire
onn this bar iss really amazing that will all people
extends to take pleasure in in ssome manner orr perhaps additional.
This particular family bar Cheshire affords the finest in United kingdom foods.

You’ll discover many people declaring of which United kingdom foods is just not aas good
as the foodstuff that’s well prepared from the additional nations just like France and The world and the like.
Additionally, the pazrticular say associated with American indian curries has additional modified
this colour palletgte in the United kingdom foodies.

Yet the reality is which English meal provides its very own good flavor.
Consumed common United kingdom foodstuff and also you can’t support althkugh nearly rikff your hands.
Indeed, the idea things how the chef is excellent,
nevertheless whenever you go to a good option with regard to nightclub foods Cheshire, you can anticipate your chief cook to get at the top
of the food preparation expertise. Witth ths
spouse and children tavern Cheshire you get almost everythinng you
need to consume in addition to ingest. Inside beverages area you’ve got the bet possible cask ales, United kingdom
as well as imported lager, cider in addition to a suhbstantial number of wine.
The meal food list is also substantial so you have
the choice from which to choose the actual diner menus, thhe particular 2-for-1
selection, your bar menus and the Wednesday menus.
Yoour mouth-watering meals aare destined to create you really feeel a
lot more than pleased. In tthe event you are searching ffor haviong this
particular tavern food Cheshire, look at the web page in addition to have
a look at the particular food selection. Every piece of information that you might wasnt is
actually granted in the internet site such as thee amount
to be able to contact to produce yyour current
booking. About weekdays yoou could possibly go to your bistro and locate a spot, but throughout weekends, it can be foolhardy looking for
an ardea and not using a reservation. Naturally, it’s wise
to be able to arrange in advance inspite of when you are.
Learn more online in order too small sample outstanding nightclub meals Cheshire.
As of this household bar Chezhire you could hsve those food items
that leave an individual pleased. The costs usually are very well within your budget, but the food is just out of
yor planet.

Have a look at my web-site: bjlxya.com

Getting a reputed one can help you to feel goodof your own important choice.
Study the loor plaan so that you caan see whether details like parking space have
been taken care of. eval(ez_write_tag([[300,250],’brighthub_com-medrectangle-1′]));.

Also visit my webpage … bokep indonesia

permaculture design course

Say thanks a lot for your time to have put these things together on this weblog. Jack and that i very much valued your input through your articles about certain things. I know that you have several demands on schedule and so the fact that you took the maximum amount of time just like you did to guide people just like us by way of this article is even highly liked.

Also visit my blog post; Crectx.com

We like to honor a lot of other world-wide-web web sites on the net, even when they aren?t linked to us, by linking to them. Underneath are some webpages really worth checking out.

Its benefits lie in the fact that it can help you to just relax,
tantra ooh, nice pop. If the massage therapists are much more likely to find it
anywhere near as good. In a relationship, you have to restore your wellness
and also way of living interesting, you may as prolong challenging the clit
with your molding and add your minuscule digit up her anus.
At that very tantra moment, as if bodies disappear and two
souls are no longer two beings.

Visit my page :: Greta

Im obliged for the article. Keep writing.

Great, thanks for sharing this blog post.Much thanks again. Keep writing.

you’re in point of fact a just right webmaster. The website loading speed is amazing. It sort of feels that you’re doing any unique trick. In addition, The contents are masterwork. you’ve done a wonderful process in this matter!

May I simply say what a comfort to uncover a person that actually understands what they’re
discussing online. You definitely realize how to bring a problem
to light and make it important. More people really need to
look at this and understand this side of the story. It’s surprising you are not more popular given that you most certainly have the gift.

You made some decent points there. I looked on the internet for the issue and found most individuals will go along with with your website.

Leave a Reply