SSDプチフリーズ現象
が結構話題になっているようです。せっかくSSDで快適に~・・って組んでみても引っかかりがあっては意味がありません。
以下、2chからのコピペです。どうやらFlashROMのコントローラで引っかかりの有無があるようです。
既にそれぞれの口コミ板でちらほらと書き込まれていますが、
特定のSSDにて数分あるいはそれ以上に渡って、
SSDへのアクセスが極端に遅くなるor不可能になる現象が発生するようです。
該当するのはJmicron?製コントローラを搭載したSSDで、
具体的にはOCZ,SuperTalent,PatriotMemory,バッファローのMLCモデルのようです。(ほかにもあるかも)
以下、OCZのサポート掲示板に記載されたという軽減策を紹介。
○はじめに
・ nLiteを使え
○その次にやること
・ Prefetchを切れ
・ RAMを最大容量まで搭載しろ
・ SSDの容量が50%以上ならないようにしろ
・ ハイバネーションを切れ
・ システムの復元を切れ
・ 「ディスクの書き込みキャッシュを有効にする」のチェックを外せ
・ 8.3文字ファイル名の生成を切れ
・ 最終アクセス日時の更新を切れ
・ インデックスサービスを無効にしろ
・ NTFS Change Journalを切れ
→OSによるSSDへのアクセスを極限まで減らそうとしているようです。
ただし、上記の対策は完全ではなくらしく、複数台買ってRAIDを組むのが確実なようです。
当方もOCZの120GB品でRAID0を組んでいますが、今のところ問題は発生していません。
プチフリーズ原因究明に役立ちそうな書き込み(2ch)をコピペ。
原因じゃないが、どうもReadとWriteを同時に発行してやると
JMicron系SSDでは100%プチフリが発生するようだという事は
CopySpdBenchの結果報告が証明したような気がするが。
RW同時処理でJMicronのチップが恐ろしいほど反応鈍くなるんじゃね?って事は垣間見える。
というより新たなATA命令に暫らく全く反応しなくなってんじゃね?とすれば、
そこがOSのブートドライブであればいつものようにアクセスしようとしたOSがRead命令の返答待ちでプチフリする姿が目に浮かぶ。
そういうイメージを具体的に>>284-286が書いてくれた。
細かいところでん?よくわかんね…と思う部分(RAID0によってSSDがウェアレベリングしなくて済む?とか)があるけれど、
俺は大筋では間違っていないと思う。
------------------------------------------
ICHxR等のソフトウェアRAID0の場合はOSから見た場合に抽象化されたディスクレイヤーにしか見えず、抽象化された
書込命令しか発行しなくてすむため応答待ち時間は無くなり、原理的にはフリーズは発生しなくなる。
この下り誰か教えてください!ハードRAIDは駄目って意味?なんでソフトRAIDとくくってしまうの?
そこ俺もちょっと引っかかった。
でも彼はプチフリ対策にはソフトRAID0で十分というところから話をしてる節があるので、
特に限定的じゃないけどそう書いちゃっただけ、と解釈して読んだ。
------------------------------------------
OS
↑
↓
RAIDコントローラ
↑
↓
SSDドライバ
↑
↓
実デバイス
OSからはSSDが見えないし、SSDからもOSが見えない
OSがIO命令を投げ込めばRAIDコントローラが適当に捌いてくれるから、
それがたとえSSD側が追い付かないような命令だったとしても、
RAIDコントローラの挙動により隠蔽され、その影響はOS側には及ばないという意味
…だと思うが
------------------------------------------
SSDシングル直結時(■使用ページ/□空きページ/4x4で1ブロック)
ブロックA ブロックB ブロックC ブロックD
■□□□ ■□□□ ■□□□ ■□□□
□□□□ □□□□ □□□□ □□□□
□□□□ □□□□ □□□□ □□□□
□□□□ □□□□ □□□□ □□□□
この状態で■x18個分のファイルの書き込み要求が来ると
①ブロックB→Aコピー
②ブロックB消去
③④C→A⑤⑥D→A
★この6ステップ終わるまで書き込み可能にならないので応答停止→プチフリ
⑦ブロックB書き込み16ページ
⑧ブロックC書き込み2ページ
となるので都合8ステップ必要になるが前半6ステップが完了するまでOS側に
書き込みOKとは返事できないので応答停止する。コレがプチフリの正体。
OS(ドライバ)からはたったの1IOPSだけど内部的には6+1IOPSに加えてウェア
レベリング待ち時間が発生する。
SSD-RAID0時(■使用ページ&▼RAIDブロック未利用(ゼロフィル)/□空きページ/4x4で1ブロック)
ブロックA ブロックB ブロックC ブロックD
■▼▼▼ □□□□ □□□□ □□□□
▼▼▼▼ □□□□ □□□□ □□□□
▼▼▼▼ □□□□ □□□□ □□□□
▼▼▼▼ □□□□ □□□□ □□□□
ブロックA' ブロックB' ブロックC' ブロックD'
□□□□ □□□□ □□□□ □□□□
□□□□ □□□□ □□□□ □□□□
□□□□ □□□□ □□□□ □□□□
□□□□ □□□□ □□□□ □□□□
この状態で■x18個分のファイルの書き込み要求が来ると
①ブロックA'■x16とブロックB■x2▼x14を平行書き込み
コレで終わり。単純に1IOPSで終わってしまう。
ブロックA ブロックB ブロックC ブロックD
■▼▼▼ ■■▼▼ □□□□ □□□□
▼▼▼▼ ▼▼▼▼ □□□□ □□□□
▼▼▼▼ ▼▼▼▼ □□□□ □□□□
▼▼▼▼ ▼▼▼▼ □□□□ □□□□
ブロックA' ブロックB' ブロックC' ブロックD'
■■■■ □□□□ □□□□ □□□□
■■■■ □□□□ □□□□ □□□□
■■■■ □□□□ □□□□ □□□□
■■■■ □□□□ □□□□ □□□□
そして↑のような状態になるからブロック内ウェアレベリング
処理を行う余地がない状態でデータが埋まる。
HDD-RAIDでもそうだけど単純に512バイトセクタだったのが
感覚的にはRAIDストライプサイズ設定の128KB等の巨大なセクタに
なるのと同じなので、当然無駄はかなり多い。
しかし少なくともブロック単位(もしくはその整数倍)でしか入出力
しないため、初出の例のようなページ間ウェアレベリングは発生を防止
することが出来るため、プチフリは起きなくなる。
--------------------------------------------------
SSDではSATAに来る読み書きコマンドとは
別のタイミングで(間接的な影響は受ける)
2種類の読み書きが発生する。
番地変換表や消去回数表の揮発メモリからNANDへのバックアップ
静的ウェアレベリングを成すためのデータ移動
ファームがアホだと、SSD外からの読み書きコマンドが
特定のパターンで来た場合に、これらの読み書きと干渉させてしまい
停滞を引き起こすんじゃないか?
そんなことは避けるように組むのは当たり前だが、パターンの
想定で漏れがあっても不思議じゃない気がするんだが
---------------------------------------
俺はRAID0でOSのプチフリは解消するが、SSD(JMicron)のプチフリが解消してるわけではないと妄想してる。
HDDなら即答して当然のコマンドに対して応答遅延を起こしているんだと思ってる。
RAID0をOSとSSDの間に挟むと、OSからのコマンドにはRAID側が遅延無く応答を返しているのだろうと。
ATAのコマンドやファイルIOの処理の詳細を知っているわけではないので、
どのコマンドに対して応答遅延が起こるとOS が困るのか、その辺はわからないw
ごめん、NRAIDわからない。単体RAID0的な代物?
だとしたら、それは俺が欲しいと思ってる機能なんだけども。
そういえば、OS提供のソフトRAID(XPのダイナミックディスク)でもプチフリが解消したりするんだろうか?
この報告は出来るとも出来ないとも言われてないような…。
でも、あれも同じドライバ介して直で繋がってるわけだからそこでプチフリっちゃうのが落ちか。
…逆に出来ちゃったら困った話になりそうだ。
« お台場にて | Main | しばらくぶりに更新。 »


Comments
My father in law is a finalist in a KFC tshirt contest so I'm here to solicit votes on his behalf. If you want to help, please go here Chari-T Shirt Contest - Cast Your Vote - KFC.com and vote for #11. You can vote once a day if you remember. Thanks! I'll shall spread lots of love and positive rep to everyone that votes for him.
Posted by: polkofinder | July 17, 2009 at 16:50
What would you do if the internet crashed for good? Would you get used to life with less communication and less being connected or would you be pretty bummed for the rest of your life? This is assuming it was not fixed. Perhaps some largescale EMP attack or something that crippled it for the next 50+ years or so.
Posted by: alkazaider | July 16, 2009 at 12:08
How many times you eat during a normal ... every day life? are you the type of person who eats a bit and often? or rarely and too much? i usually have 3 and i'm the 2nd type of person (though it's not that healthy) 8 am breakfast 3pm lunch 9pm a snack.
Posted by: psevdolokulop | July 16, 2009 at 01:20
What time do you normally go to bed? My bed times have been all over the place for the last year basically. When I was working last summer I had to get up really early (about 4.45am) because my job was an early start so I would go to bed about 9pm, 10pm at the latest. Then when I went to college and moved away from my parents house my bed times went crazy and I was going to bed at like 1am or 3am and now I'm back home for the summer but working a later
Posted by: Nimopedius | July 15, 2009 at 01:51
And by pissed, i mean drunk...completely hammered: So a mate of mine got pissed at work the other day (i work with him) and at the end of the shift i had to drive him home, there was no way i was letting him drive. He wanted to of course. So because a did this he filled the car up with fuel and bought me beer for when i got home...so this is the first time anything good has come from going to work pissed, or getting pissed at work. And he was talkin cra
Posted by: KlodsM | April 30, 2009 at 19:25
I'm looking to buy a gaming console soon, and I know nothing about them. I've asked a few of my friends what they would recommend and it's become a toss up between a PS3 and an Xbox360. At the moment I'm leaning more towards a 360 because it's cheaper. So, basically what I'm asking is which console is the best, in your opinion for a complete novice? Which has the wider selection of games (if there's any difference), and which has the better features?
Posted by: Vannot | April 27, 2009 at 21:23
Have you ever been to a themed party where you dressed up accordingly? Every year we have a themed party which includes costumes, food, music, backdrops to match. Over the years we've had the following themes: China, Under the Sea, Colours, Out of Space, Countries, Black & White, Hawaii, History, Fairy Tales... Can't think of anymore. Anyway they are real fun, seeing what everyone dressed up as and how they interpredted the theme idea.
Posted by: reindyzisse | April 27, 2009 at 12:52
Its 9:30 and someone tells you to come meet them in some parking lot. You barely know this person and its late at night,not super late but it is dark out now. Would you go?
Posted by: JohnBN | April 26, 2009 at 04:18
I think Burger King is the better fast food joint out of the two of these. The burgers taste better, the fries taste better, the have WAY better pies and the only thing McDonalds does better than them is the chicken nuggets.
Posted by: cKoba | April 21, 2009 at 20:53
I don't have a link to the story. I saw it on our news and read the article in our paper today. A woman was pregnant with triplets. For some reason (they didn't disclose for privacy purposes), one of them was born (not even by c-section but natural way) at 25 weeks and the doctors were successful in stopping the other two from coming out. So now the woman is taking care of the preemie and is still pregnant with twins. In this case, are they still called
Posted by: KinderWoods | April 20, 2009 at 06:19
What are your favourite (lyrical) themes in music? Are there any you don't like? I generally dislike love-songs.. or these girl power-thingies you see on MTV (but I guess that's normal for a guy). Of the music I actually listen to I'm not particular fond of the workers ethics in classic rock songs.. you know, about the booze and the relationships that don't really go your way I also dislike the superficial 'love for everything'-mumbo jumbo in new age
Posted by: SongMann | April 18, 2009 at 19:39
Hi friends, Please share which mobile you used for the very first time... Mine was Nokia 2130... the black one...
Posted by: pedastrion | April 15, 2009 at 06:34
This came to me while sitting at work freezing to death. If you had to choose to be really hot or really cold all the time which would you choose and why? I have to deal with both pretty regularly with deployments and stuff. Right now I'm in the desert. It's really hot during the day and then at work it's always really cold. I think if I had to choose I'd want to be always hot. I hate the desert and I hate being hot, but something about being cold ma
Posted by: JohnDays | April 13, 2009 at 12:21
last night we had to go over to the skids place to drop something off and the boys came outside to talk to DH in the front yard. i was in the car, and SS6 came running over to me, he have me a hug and a kiss and then stayed chatting to me for a while before saying i'd better go and talk to dad now and running off i had assumed that DH had told him to say hello to me, but when DH got back in the car he told me that he hadn't said anything, SS
Posted by: KattyLoL | April 12, 2009 at 09:35
For example, my nickname on forum is DrRussia because me doctor and I'm from Russia :)
Posted by: DrRussia | April 11, 2009 at 07:32
●松たか子アワだらけの全裸入浴シーン【期間限定動画】
松たか子が映画で"泡まみれ全裸入浴シーン"を披露して話題になっている。
http://matutakako.blogspot.com/
この後ろ姿の"泡だらけ全裸"は、まさに目を釘付けにさせるほどの絶品ぶり。"ソープの泡踊り"を妄想してしまうほど。
http://matutakako.blogspot.com/
その入浴シーンと撮影ハプニング映像を期間限定で公開!
Posted by: ●松たか子アワだらけの全裸入浴シーン【期間限定動画】 | December 20, 2008 at 14:17