52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2017-8-26 21:22:52 | 芰閰脖 |芰憭批 撣 |摨閬 |梯璅∪
銝 擐隞蝝寧′蝣  I/O Scheduler
. D  R1 h8 [& h+ J  s# f9 Z9 o. n! ~4 X- Z
1 G5 G* C* e* N0 R9 F. i
I/O Scheduler臭暻潘Wiki隤芣:
6 C6 e- G$ t- M% U; ]& yInput / 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'.
8 r  s0 I& y8 k5 i' V
7 p/ k: h, U% M5 c+ P
6 u  N7 e2 E5 S( t1 ?
蝪∪桃隤迎撠望航臭誑蝬曹閮剖嚗靘啗矽渡蝣摮(I/O)璅∪銝蝔株身摰撌亙瑯
' D1 P0 k: I$ x/ t+ r, O7 h$ t+ c" ?5 t4 k$ p

7 f& ~2 x0 N' l1 v3 `& t; h桀Linux舀游蝔埋/O Schedule璅∪嚗亦:
& A/ J: n7 Y5 Y1 S2 ^/ q8 t9 z; u0 q, l- o
, {0 r5 b) B/ \( b- {
Noop Scheduler (蝪∠迂noop) -- RIAD SSD 撱箄降雿輻 noop9 m, y  y& O$ w9 R% M
臭誑蝞舀箸砌蝪∪Scheduler嚗銝餉冽潔鈭頛箇孵亦頠擃蝖祇剝雿啣銝哨銝鈭頠/蝖祇撌脩瑕芸楛I/O摮璈塚銝撠潛頂蝯望詨閬瘙頛撠嚗璅Scheduler瘥頛拙典典亙啣蝟餌絞銝准
: N+ R8 k% ?  v/ J- o2 Q# i- d$ q, |: [1 q+ H7 c: `
. p  `# A# o4 Q% L; l, F
Completely Fair Queuing (蝪∠迂cfq)
' E8 A) b" r5 b2 @+ X憿批蝢抬撠蝖祉蝟餌絞冽閬I/O隞餃嚗蝯衣詨雿摨(Queuing)嚗璅Scheduler拙冽潔砌蝙刻獢銝餉衣雿啣嚗芸2006撟12Linux Kernel 2.6.18銝渲喃伐CFQ Scheduler銝湔烊inux詨閮剔 I/O scheduler
8 L2 a0 h7 s/ H
* z$ @6 Z; E2 R( |% n6 J

# p6 N0 B2 o( S# ~' UAnticipatory Scheduling (蝪∠迂anticipatory)4 \/ c8 T5 ~( q+ A3 d/ {
曄銝摨行烊inux 2.6 Kernel 閮 I/O Scheduler 嚗婢nticipatory (/) 摮閫靘嚗憒蝚砌I/O箇橘銝亦蝟餌絞蝚砌I/O隢瘙雿嚗Anticipatory Scheduling撠Y銝閮剝閬6瘥怎"皜"()嚗皜穿臬函皜祉洵鈭I/O隢瘙航隞暻潛函嚗璅皜祇單芋撘函撣豢折脰冽摮蝟餌絞扳頛憭抒撱園莎撠文嗆臬鞈摨恍璅蝟餌絞啣嚗雿銋嚗Anticipatory Scheduling撠澆蝬脤隡箸券璅蝟餌絞銵函曄貊嗅末
$ o8 E$ B$ R  ^' o" a, w" {) ?; x3 u: g5 i

6 u. k+ S* N" j+ jDeadline Scheduler (蝪∠迂deadline) -- SATA 撱箄降雿輻 deadline% Q% G) q% t1 j7 G) E* c2 u1 f
銝餉Scheduler撠望舫撠Anticipatory Scheduling蝻粹靘脰孵嚗摰撠蝤蝣銝剔撣賊剖啣銝函撘嚗閮銝西ˊ雿蝚血撠撱園脫雿摨嚗璅蝯撠潸摨怎頂蝯梯賣靘游摮9 p- Z5 ^+ j+ S3 n

; T  d+ U0 o- {. b
! w+ p7 @$ n- ^; ]0 [
銝爹ed Hat Enterprise Linux 4 (2.6 Kernel) 剝Oracle10G鞈摨怨蝔埋/O Scheduler皜祈岫蝯 (鞈靘皞撅昱edhat砍豢)+ j9 ^5 t3 H( K3 q6 Q

$ T* r2 v  O; g
: v7 _* L& `0 P2 U' D+ r6 N
蝪∪桃閫鈭I/O Scheduler璅∪撌桃啣嚗臭誑撠銝脣閮剖靘剝銝I/O Scheduler脰賭隤踵∴擐曉啁恣I/O Scheduler蝟餌絞瑼獢嚗瑼獢舐牢at孵靘霈:- _& C  {) \0 g- f( C/ M  E
& U  j, U+ w" m' i' F

& z4 l0 [+ d9 U#cat /sys/block/sda/queue/scheduler
& U' n1 c0 I+ x- X! F2 g[noop] anticipatory deadline cfq: `$ @  S  i% Q- w# n" s

8 s# C0 P  e$ M! \! T. @' H* V' ~
7 m3 R, f! |3 {& ]3 E$ N" B3 _
敺銝靘嚗臭誑仿桀I/O Scheduler璅∪摸oop. (獢 [ ] )" G) |% B! m7 F
4 r$ d8 ^% e7 R3 w) f7 ]0 k

6 p9 E9 y. B/ L, n9 `( x仿閬脰靽格寡矽湛雿瘜拍車:& F- N0 b: v5 u7 L7 i( l  I
, ]- A) w# T- Y5 B" s; w( {

- V. N$ T4 S' c: i1 w3 k+ K0 _1. 格活隤踵湛唾矽游喟嚗蝬庸cho隞支湔遐/O Scheduler璅∪
0 \" I1 W2 ?( u
# Q0 j/ G; e' ~% t5 M/ e: \1 \  e* |

7 d( r) l* \! m$ e5 z2 q#echo Deadline>/sys/block/sda/queue/scheduler
/ }1 E+ U9 S/ H9 T" }/ E& ]1 ^0 }; l2 r  f
  K, m# V. q: y+ M6 i5 q
銝靘箏桀sda憿蝖祉I/O Scheduler湔寧慣eadline璅∪嚗孵典喟嚗雿圈璈敺啁頂蝯望詨暺隤I/O Scheduler璅∪
9 E( F2 G& @. z/ U. d& g5 r' m
9 X4 C- p+ H/ }+ ]
6 B  T6 N7 [9 L: B
2. 刻蝟餌絞璈脰隤踵渡:
; `, Z; K- G9 b' u隞乩21
: u0 Y* ~7 k; ~# C
/etc/rc.local 批乩銵:
echo anticipatory > /sys/block/sdb/queue/scheduler
函頂蝯梁GRUB璈瑼獢銝哨敺銝銵銝elevator=deadline嚗喳舀潭甈⊿璈敺賭Deadline Scheduler雿璅∪嚗憒銝靘:
4 n  Y/ E0 N, c: d; q' T) }
* h- O% U: J2 ?

6 n' K" f2 q+ D% q4 f6 \4 B0 n蝺刻摩 /boot/grub/grub.conf4 B+ ?% s  t5 P9 `* c3 i9 t

$ u# f9 b" C. J5 X$ E, Q; f
6 q* R1 j  ]+ K! d" T! F
title Fedora Core (2.6.9-5.0.3.EL_lustre.1.4.2custom)
2 \; n, o5 s( F; N1 Aroot (hd0,0)
! \# D" t0 W. G$ m3 ^kernel /vmlinuz-2.6.9-5.0.3.EL_lustre.1.4.2custom ro( n/ \" {" |. I' s' `, z: C7 A4 _0 N. q
root=/dev/VolGroup00/LogVol00 rhgb noapic quiet elevator=deadline
1 L6 v$ Z( |! G" G1 {2 w! D+ p5 z3 A0 \

, m7 |" V6 t: o8 i& G# o8 C& L
6 K; A9 K) b" ?1 R8 n" ?
  _. K) ^, y1 {! E/ t0 P
鈭 乩靘舐′蝣 Readahead 敹怠( c3 Q) \3 p' V& X3 R
* f# t; M2 ~, X4 Y+ i

: Q" f  z8 l/ O1 G" F其遢撠望頛摰寞閫嚗蝬梁頂蝯梁蝣霈閮剖靘霈踝蝬梯矽嵇eadahead Sectors憭批靘憓脩頂蝯梁蝣霈賢榆堆撠望航矽∠銝餉桃' S% Z, E2 \+ U) D$ Q  k

- a4 m( k4 g4 ^; r
/ g3 G1 u6 d0 z* V/ H0 x
蝬尉inux蝟餌絞隞: blockdev 靘瑼Z桀sda蝖祉Readahead Sectors憭批嚗蝭靘憒銝
2 y% V, ^3 I, j  ]: e/ l- D. q  P: D% b6 P9 R
) T, J2 o8 {, @2 s- H, H# g3 R
#blockdev --getra /dev/sda   (蝟餌絞閮剜256M)% n4 n) `% ~3 j. C3 e
512
. u8 `# \6 ?4 i" F' H5 P0 E, c6 W" ?4 L5 l& w( C

1 N7 C0 A. l1 G$ z! q) e蝬梯矽游訾蒂撣嗅兄ectors憭批嚗靘脰質矽湛蝭靘憒銝:
$ z  p" C; h& W! p; O8 U; ^, g: `$ M: C2 {0 F0 ]
$ q, s5 {: j# K0 q
#blockdev --setra 4096 /dev/sda
; n5 f" N# d8 a: E; k# e5 ~3 G" n% \4 }% [9 [
0 p# L1 Y8 Z! ]- A  L* C
#blockdev --getra /dev/sda. d( W" q5 |+ Z) m
40964 j) s1 L+ }% R! I! [* k

+ ~: u! O" q' I4 E% a5 f8 v2 Z
刻蝟餌絞璈芸閮剖:6 E- Y, a. d0 ^9 O& L/ k8 B2 n
/etc/rc.local 批乩銵:/ _) n" W% A  w) T8 x/ b  _; n
blockdev --setra 4096 /dev/sda
& A4 D% k) B5 e+ e

7 |! s* \8 Y, U( Q蝬拍車蝖祉質矽∠撠寞嚗舀賢典祈賢停瘥頛撌桃蝖祇啣銋銝嚗憭憯璁典箔鈭霈賬
2 |1 s! k2 V- c3 S8 c/ @0 U8 m撖虫:隞亙鈕erver敺憭撌乩,靘憒 ffmpeg, php(move_uploaded_file)銝喳之瑼獢 ,tar , mv 憭抒瑼獢,雿撟曆∩,摰典銝鈭,蝬銝餈啁隤踵,憿摰刻圾瘙/ G) D% I0 h6 x8 A4 t  e

1 k4 |9 n* i, w  r0 h7 \血,sysctl.conf隤踵銋舀撟怠拍& ~1 f7 A+ O1 i0 {

2 E$ c  X4 h* B7 o2 H
+ i3 X' C) k5 P* _" q  l
靘皞:
. g; S& L& x+ `6 ^/ w4 N3 G8 Y; V6 T. E& P+ K+ r
http://itstorage.storageforum.tw ... eadahead-cache.html
8 m0 u+ n( t2 \

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-11-22 09:44 , Processed in 0.076441 second(s), 19 queries .

蝯∠.撱

[email protected] | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵