tests: remove fincore SMALLER_THAN_PAGESIZE tests

These tests failed for example on ext4 with a non-default
blocksize 1024. In this case it seems that the kernel only
caches a full page if we read at least PAGE_SIZE -BLOCK_SIZE +1.

Both tests also failed on NFS allthough block size seems to be
1M there.

We still keep the test for PAGE_SIZE-1 which seems to work more
reliable.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
Ruediger Meier 2017-04-06 09:56:01 +02:00 committed by Karel Zak
parent a8294f401f
commit 0614fe48bc
2 changed files with 0 additions and 14 deletions

View File

@ -2,16 +2,12 @@
fincore: failed to open: no_such_file: No such file or directory
return value: 1
0 0 i_EMPTY_FILE
return value: 0
1 2048 i_SMALLER_THAN_PAGESIZE__incore_
return value: 0
1 4095 i_PAGESIZE_-1__incore_
return value: 0
1 4096 i_JUST_PAGESIZE_incore_
return value: 0
0 4096 i_JUST_PAGESIZE_directio_
return value: 0
2 4097 i_PAGESIZE_+_1__incore_
return value: 0
2 8192 i_TWO_PAGES_incore_
return value: 0
@ -41,11 +37,9 @@ return value: 0
fincore: failed to open: no_such_file: No such file or directory
PAGES SIZE FILE
0 0 i_EMPTY_FILE
1 2048 i_SMALLER_THAN_PAGESIZE__incore_
1 4095 i_PAGESIZE_-1__incore_
1 4096 i_JUST_PAGESIZE_incore_
0 4096 i_JUST_PAGESIZE_directio_
2 4097 i_PAGESIZE_+_1__incore_
2 8192 i_TWO_PAGES_incore_
0 8192 i_TWO_PAGES_directio_
1 8192 i_TWO_PAGES_mixed_directio_incore_

View File

@ -91,10 +91,6 @@ input=
run_dd_test "EMPTY FILE" 0
} >> $TS_OUTPUT 2>&1
{
run_dd_test "SMALLER THAN PAGESIZE (incore)" $(( PAGE_SIZE / 2 ))
} >> $TS_OUTPUT 2>&1
{
run_dd_test "PAGESIZE -1 (incore)" $(( PAGE_SIZE - 1 ))
} >> $TS_OUTPUT 2>&1
@ -107,10 +103,6 @@ input=
run_dd_test "JUST PAGESIZE(directio)" $(( PAGE_SIZE )) "oflag=direct"
} >> $TS_OUTPUT 2>&1
{
run_dd_test "PAGESIZE + 1 (incore)" $(( PAGE_SIZE + 1 ))
} >> $TS_OUTPUT 2>&1
{
run_dd_test "TWO PAGES(incore)" $(( 2 * PAGE_SIZE ))
} >> $TS_OUTPUT 2>&1