Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
debian-packages
lustre-release
Commits
ca3ae1e5
Commit
ca3ae1e5
authored
16 years ago
by
Elena Gryaznova
Browse files
Options
Downloads
Patches
Plain Diff
b=14471
i=Adilger test_101 fix
parent
70136ab9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lustre/tests/sanity.sh
+8
-6
8 additions, 6 deletions
lustre/tests/sanity.sh
with
8 additions
and
6 deletions
lustre/tests/sanity.sh
+
8
−
6
View file @
ca3ae1e5
...
...
@@ -3639,8 +3639,9 @@ test_101() {
$READS
-f
$DIR
/
$tfile
-s
$((
cache_limit
*
3192
*
1024
))
-b65536
-C
-n
$nreads
-t
180
discard
=
0
for
s
in
`
lctl get_param
-n
llite.
*
.read_ahead_stats | get_named_value
'read but discarded'
`
;
do
discard
=
$((
$discard
+
$s
))
for
s
in
`
lctl get_param
-n
llite.
*
.read_ahead_stats |
\
get_named_value
'read but discarded'
|
cut
-d
" "
-f1
`
;
do
discard
=
$((
$discard
+
$s
))
done
cleanup_101
...
...
@@ -3686,10 +3687,11 @@ ra_check_101() {
local
RA_INC
=
1048576
local
STRIDE_LENGTH
=
$((
STRIPE_SIZE/READ_SIZE
))
local
FILE_LENGTH
=
$((
64
*
100
))
local
discard_limit
=
$((
(((((
STRIDE_LENGTH
-
1
))*
3
)
/
(
STRIDE_LENGTH
*
OSTCOUNT
))
*
\
(
STRIDE_LENGTH
*
OSTCOUNT - STRIDE_LENGTH
))))
DISCARD
=
`
$LCTL
get_param
-n
llite.
*
.read_ahead_stats |
\
get_named_value
'read but discarded'
| calc_total
`
local
discard_limit
=
$((
((
STRIDE_LENGTH
-
1
)*
3
/(
STRIDE_LENGTH
*
OSTCOUNT
))*
\
(
STRIDE_LENGTH
*
OSTCOUNT - STRIDE_LENGTH
)))
DISCARD
=
`
$LCTL
get_param
-n
llite.
*
.read_ahead_stats |
\
get_named_value
'read but discarded'
|
\
cut
-d
" "
-f1
| calc_total
`
if
[
$DISCARD
-gt
$discard_limit
]
;
then
lctl get_param llite.
*
.read_ahead_stats
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment