Hi!
>       I used ltp to test my linux OS.Sometimes, I get "fsync took too long" 
> error.Then I read fsync02 description -- Create a sparse file, fsync it, 
> and time the fsync, but I don't know what is the purpose to do this, Any 
> ideas or pointers would be greatly appreciated.

Looks like the testcase tries to assert that fsync() finishes in
reasonable time. Which is 120 seconds and if I'm right the amout of data
it writes to the file is about 8MB and that seems to be fairly
reasonable unless you system is under heavy load.

One of the problems may be that it uses BUFSIZ for the size of the
buffer, which is defined in my glibc to 8192, if that constant is
defined substantially larger on your system the test may easily fail.

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to