ndctl, test: fix timeouts in device-dax
Vishal Verma
maintainerPATCH 1/1 ndctl, test: fix timeouts in device-dax
The device-dax test used heuristic timeouts for distinction between cached and uncached accesses. The timeout was too short for emulated e820 on a virtual machine. Increased the cached timeout to ~30ms, which still keeps it significantly far from the cached time of 200ms.
--- test/device-dax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
test/device-dax.c +1 -1
@@ -97,7 +97,7 @@ static void sigbus(int sig, siginfo_t *siginfo, void *d)* 3.00GHz where the loop, for the align == 2M case, completes in 7500us * when cached and 200ms when uncached. */ -#define VERIFY_TIME (x) (suseconds_t) ((ALIGN(x, SZ_2M) / SZ_4K) * 30) +#define VERIFY_TIME (x) (suseconds_t) ((ALIGN(x, SZ_2M) / SZ_4K) * 60)static int verify_data (struct daxctl_dev *dev,char *dax_buf,unsigned long align,int salt,struct ndctl_test *test)
Signature · 6 lines
2.14.4 _______________________________________________ Linux-nvdimm mailing list [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
Quoted 17 lines · Vishal Verma
The device-dax test used heuristic timeouts for distinction between cached and uncached accesses. The timeout was too short for emulated e820 on a virtual machine. Increased the cached timeout to ~30ms, which still keeps it significantly far from the cached time of 200ms.
Cc Dan Williams <[email protected]>Signed-off-by Vishal Verma <[email protected]>--- test/device-dax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)test/device-dax.c +0
-0
test/device-dax.c static void sigbus(int sig, siginfo_t *siginfo, void *d) · line 100
Quoted 5 lines
test/device-dax.c +1
-1@@ -97,7 +97,7 @@ static void sigbus(int sig, siginfo_t *siginfo, void *d)* 3.00GHz where the loop, for the align == 2M case, completes in 7500us * when cached and 200ms when uncached. */ -#define VERIFY_TIME (x) (suseconds_t) ((ALIGN(x, SZ_2M) / SZ_4K) * 30) +#define VERIFY_TIME (x) (suseconds_t) ((ALIGN(x, SZ_2M) / SZ_4K) * 60)
Looks good to me, I knew it was only a matter of time before we found an environment that violated the expectation. Any bets on if we'll ever need to touch it again?
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm