52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 4461|敺: 0
銝銝銝駁 銝銝銝駁

[linux隞也 Linux 雿輻沉/O Scheduler靘隤踵渡′蝣I/O璅∪隞亙憭刪eadahead Cache靘憓稼1撘萄]

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2017-8-26 21:22:52 | 芰閰脖 |芰憭批 撣 |摨閬 |梯璅∪
銝 擐隞蝝寧′蝣  I/O Scheduler9 J* b! u4 R8 ~) E( }
+ A7 I; w! @  Z- A

8 ?! J1 s9 E+ ~* pI/O Scheduler臭暻潘Wiki隤芣:, I$ d3 y2 c( v& G0 _
Input / Output Scheduling or I/O Scheduling is a term used to describe the method computer operating systems decide the order that block I/O operations will be submitted to storage volumes. I/O Scheduling is sometimes called 'disk scheduling'.4 Y. x' I& W. o6 i, |. F! N0 q7 P
$ h; _4 p9 S# I4 }

7 b9 }' M' P4 U5 z! C/ {蝪∪桃隤迎撠望航臭誑蝬曹閮剖嚗靘啗矽渡蝣摮(I/O)璅∪銝蝔株身摰撌亙瑯' U! q( t# w4 K2 v0 Z5 E

+ ^1 f# Q. L+ Y5 P

1 Y: b# t1 `$ G9 A桀Linux舀游蝔埋/O Schedule璅∪嚗亦:7 e9 `2 J& J, D% l. O3 h) l

! _4 w0 ^* w( P3 ?
* O- H7 D- F2 G6 Y& ?1 _3 `
Noop Scheduler (蝪∠迂noop) -- RIAD SSD 撱箄降雿輻 noop9 D$ }: [/ E9 P) S
臭誑蝞舀箸砌蝪∪Scheduler嚗銝餉冽潔鈭頛箇孵亦頠擃蝖祇剝雿啣銝哨銝鈭頠/蝖祇撌脩瑕芸楛I/O摮璈塚銝撠潛頂蝯望詨閬瘙頛撠嚗璅Scheduler瘥頛拙典典亙啣蝟餌絞銝准
8 x. p! z+ G" L2 a
" u9 d2 b4 C4 w- R# m+ Z5 \
. a8 a# L( C% d
Completely Fair Queuing (蝪∠迂cfq)4 j7 D9 C" @1 P# e
憿批蝢抬撠蝖祉蝟餌絞冽閬I/O隞餃嚗蝯衣詨雿摨(Queuing)嚗璅Scheduler拙冽潔砌蝙刻獢銝餉衣雿啣嚗芸2006撟12Linux Kernel 2.6.18銝渲喃伐CFQ Scheduler銝湔烊inux詨閮剔 I/O scheduler
. _$ F1 G6 a4 e3 r3 T2 ]9 z
- y% C& _9 t5 `1 m; F! V

/ p: j0 U7 `/ W9 ?  EAnticipatory Scheduling (蝪∠迂anticipatory)
/ o$ Z) B. t; R( N* k曄銝摨行烊inux 2.6 Kernel 閮 I/O Scheduler 嚗婢nticipatory (/) 摮閫靘嚗憒蝚砌I/O箇橘銝亦蝟餌絞蝚砌I/O隢瘙雿嚗Anticipatory Scheduling撠Y銝閮剝閬6瘥怎"皜"()嚗皜穿臬函皜祉洵鈭I/O隢瘙航隞暻潛函嚗璅皜祇單芋撘函撣豢折脰冽摮蝟餌絞扳頛憭抒撱園莎撠文嗆臬鞈摨恍璅蝟餌絞啣嚗雿銋嚗Anticipatory Scheduling撠澆蝬脤隡箸券璅蝟餌絞銵函曄貊嗅末
0 f9 t4 C, n. s
. j. _& s3 U2 k- ^0 U
& x) Z6 ~  d6 [" Y! _: c' R7 v
Deadline Scheduler (蝪∠迂deadline) -- SATA 撱箄降雿輻 deadline+ c, Z9 {' i! K6 I
銝餉Scheduler撠望舫撠Anticipatory Scheduling蝻粹靘脰孵嚗摰撠蝤蝣銝剔撣賊剖啣銝函撘嚗閮銝西ˊ雿蝚血撠撱園脫雿摨嚗璅蝯撠潸摨怎頂蝯梯賣靘游摮
* j  o" S# V# h! t( `5 `, c2 D; S7 A! Q0 {* X

6 g! |- B. i5 X$ Y  U( _) v7 e8 a銝爹ed Hat Enterprise Linux 4 (2.6 Kernel) 剝Oracle10G鞈摨怨蝔埋/O Scheduler皜祈岫蝯 (鞈靘皞撅昱edhat砍豢)
# f- }8 n: F1 W/ @% g5 Q, q" B# i ( B. I8 [9 |1 ~: M; w8 I9 s  g  v

: a- y* q4 P# |$ r6 q+ ?蝪∪桃閫鈭I/O Scheduler璅∪撌桃啣嚗臭誑撠銝脣閮剖靘剝銝I/O Scheduler脰賭隤踵∴擐曉啁恣I/O Scheduler蝟餌絞瑼獢嚗瑼獢舐牢at孵靘霈:9 l! w$ q8 g/ S* b$ {# H

3 n1 r/ J4 p0 B% r% y& n! b. F1 r
# q% y& \% @# @4 i3 w; j+ y$ m
#cat /sys/block/sda/queue/scheduler; m; H) d4 p9 R! L7 o% v8 Z
[noop] anticipatory deadline cfq0 @1 z# c% J$ }8 \1 T. }: X, g

0 y* p  _/ D8 ]! E; a

4 f# L, c0 G( Z3 r, C: N" ]" S' ?敺銝靘嚗臭誑仿桀I/O Scheduler璅∪摸oop. (獢 [ ] )7 e1 D; n- N6 V% X; V1 U3 a# [

% R- A$ q7 P4 X( O8 l. s
) k3 R8 g: q( ~$ Z
仿閬脰靽格寡矽湛雿瘜拍車:
: }# @7 D4 A7 l# f% m7 P* t( G9 b& I' b5 e3 [

' c/ d7 d; X% _% X. d/ \( B1. 格活隤踵湛唾矽游喟嚗蝬庸cho隞支湔遐/O Scheduler璅∪
- B2 N9 u$ e. ]4 X/ b5 B6 y
- _4 K' Q6 b9 }: _: A9 J
8 ?! n- T, f! b( p" ?
#echo Deadline>/sys/block/sda/queue/scheduler
  {6 M8 f! m: K6 ^! l6 f) _( C- h8 @5 i% A% ?5 |

8 p% O2 n+ S; Z, M  M3 b銝靘箏桀sda憿蝖祉I/O Scheduler湔寧慣eadline璅∪嚗孵典喟嚗雿圈璈敺啁頂蝯望詨暺隤I/O Scheduler璅∪
( R: z7 L# E5 r
0 T7 c: B, V, k* `

; H" L* [2 }: A3 U+ l  d# R, g8 L2. 刻蝟餌絞璈脰隤踵渡:
5 O8 n* ^5 T6 ~隞乩21
' t6 A' p) o% {
/etc/rc.local 批乩銵:
echo anticipatory > /sys/block/sdb/queue/scheduler
函頂蝯梁GRUB璈瑼獢銝哨敺銝銵銝elevator=deadline嚗喳舀潭甈⊿璈敺賭Deadline Scheduler雿璅∪嚗憒銝靘:
4 P7 e% e3 J) J/ I' Z' q' b) G3 {# b5 c* t1 i7 D2 B

8 v& t$ g8 {- v% o7 `8 C; c蝺刻摩 /boot/grub/grub.conf  U6 h5 e5 j) E( b1 O
3 Y, W! A. B% X4 E) K

4 I" M: w- |3 r1 utitle Fedora Core (2.6.9-5.0.3.EL_lustre.1.4.2custom)
! o+ K( Q" E3 Y: a& f  i3 F9 g0 Q( _root (hd0,0)
, _! N1 G, z# O4 W2 zkernel /vmlinuz-2.6.9-5.0.3.EL_lustre.1.4.2custom ro) P* P/ c* Y$ C. y0 B& r/ Z
root=/dev/VolGroup00/LogVol00 rhgb noapic quiet elevator=deadline
0 |3 B/ i2 m' E/ g
) b, e, Q; B8 n) g+ Y) X: T9 @
' `# R# J8 b# u4 l
( `3 ?( E; G* M4 F1 Z/ c
: v& @3 \" s4 d5 j8 ^
鈭 乩靘舐′蝣 Readahead 敹怠
9 D3 j8 v8 J; j  u$ [9 c  {% w! ]2 Q- O" z9 N1 l

. n# \3 I. s  O7 s: A& V! Y3 m其遢撠望頛摰寞閫嚗蝬梁頂蝯梁蝣霈閮剖靘霈踝蝬梯矽嵇eadahead Sectors憭批靘憓脩頂蝯梁蝣霈賢榆堆撠望航矽∠銝餉桃
0 x. R7 n1 Q& g, {2 r$ l. J
1 `  m8 K4 i: l
& S+ f: T- b' k" q
蝬尉inux蝟餌絞隞: blockdev 靘瑼Z桀sda蝖祉Readahead Sectors憭批嚗蝭靘憒銝
. {6 J' I7 a- c  H9 s+ @- |7 A* w4 P4 v* }5 Q
* {5 V# d( t# N8 g; j2 z+ ?
#blockdev --getra /dev/sda   (蝟餌絞閮剜256M)
2 O1 v& `6 n; T: v6 F4 {+ ?512
" Z1 M; r  [. o! j% V& g* Q/ w5 I# ^" S1 R
/ v$ N1 `8 Y3 v( E1 o$ f7 ]
蝬梯矽游訾蒂撣嗅兄ectors憭批嚗靘脰質矽湛蝭靘憒銝:; [5 ]# G' ?* e6 C; y+ P/ y3 E
  \2 E. K) j, t

  R6 {% u$ p' ~, n  h0 C0 R7 u#blockdev --setra 4096 /dev/sda# y! h5 D# e/ i$ z. q8 k( o/ }
3 C8 N! ^7 M: G6 Z: G
! D, V* j* G$ d$ ]! w
#blockdev --getra /dev/sda
+ k7 d1 r1 M7 b/ V# a( Y5 S4096
/ z  g3 u! P: p3 m7 x  K9 p( @9 o. q, i
刻蝟餌絞璈芸閮剖:' _$ x/ W+ T) b( g) o) R6 {
/etc/rc.local 批乩銵:
2 u2 O/ b2 m8 R3 Qblockdev --setra 4096 /dev/sda
% j2 b* @0 H4 ^
; \) ^" h, T4 ^  H  i
蝬拍車蝖祉質矽∠撠寞嚗舀賢典祈賢停瘥頛撌桃蝖祇啣銋銝嚗憭憯璁典箔鈭霈賬% {9 ?; c5 T' o
撖虫:隞亙鈕erver敺憭撌乩,靘憒 ffmpeg, php(move_uploaded_file)銝喳之瑼獢 ,tar , mv 憭抒瑼獢,雿撟曆∩,摰典銝鈭,蝬銝餈啁隤踵,憿摰刻圾瘙
; e  v/ {# }; D* |" c3 Q+ s# G5 R+ X; ^* x0 T3 r# s3 }- X: z
血,sysctl.conf隤踵銋舀撟怠拍
: }9 t: S  f5 R+ ~/ I$ A
0 m& r) K5 g0 ~$ m# f0 e
* W3 f$ K( E  y
靘皞:8 ]% H. k0 S8 K( U$ Q3 K! `
' a8 ?) X3 H: W6 X% G
http://itstorage.storageforum.tw ... eadahead-cache.html

) X& }' `% \- @5 w% Z

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 11:25 , Processed in 0.081270 second(s), 19 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵