@@ -11,9 +11,6 @@ const raidCalculations = {
11
11
// total disks * size
12
12
return ( num * size ) * unit ;
13
13
} ,
14
- speed : function ( num , size , unit ) {
15
- return `${ num } x read and ${ num } x write speed gain` ;
16
- } ,
17
14
fault : function ( num , size , unit ) {
18
15
return "None" ;
19
16
}
@@ -28,10 +25,6 @@ const raidCalculations = {
28
25
// total size is size of a single drive
29
26
return size * unit ;
30
27
} ,
31
- speed : function ( num , size , unit ) {
32
- // potential for all drives read at once
33
- return `Potential ${ num } x read and no write speed gain` ;
34
- } ,
35
28
fault : function ( num , size , unit ) {
36
29
// FT = total - 1
37
30
return `${ num - 1 } drive failures` ;
@@ -47,9 +40,6 @@ const raidCalculations = {
47
40
// (N-1) * S (one drive for parity)
48
41
return ( ( num - 1 ) * size ) * unit ;
49
42
} ,
50
- speed : function ( num , size , unit ) {
51
- return `${ num - 1 } x read speed gain and write speed penalty (due to parity calculations)` ;
52
- } ,
53
43
fault : function ( num , size , unit ) {
54
44
// always 1 failure
55
45
return "1 drive failure" ;
@@ -65,9 +55,6 @@ const raidCalculations = {
65
55
// (N-2) * S (2 parity)
66
56
return ( ( num - 2 ) * size ) * unit ;
67
57
} ,
68
- speed : function ( num , size , unit ) {
69
- return `${ num - 2 } x read speed gain and write speed penalty (due to parity calculations)` ;
70
- } ,
71
58
fault : function ( num , size , unit ) {
72
59
// always 2 drive failures
73
60
return "2 drive failures" ;
@@ -83,9 +70,6 @@ const raidCalculations = {
83
70
// Total disks (stripe)/2 (mirror)
84
71
return ( ( num * size ) / 2 ) * unit ;
85
72
} ,
86
- speed : function ( num , size , unit ) {
87
- return `${ num - 2 } x read speed gain and write speed penalty (due to parity calculations)` ;
88
- } ,
89
73
fault : function ( num , size , unit ) {
90
74
// one per mirror
91
75
return "1 drive failure per mirrored set" ;
0 commit comments