The attached file when compiled on a 32GB Mem system, gives a data corruption if run with number of threads greater than 15 How to run: 1. compile: # gcc random_multi_write_read.c -o test -lpthread 2. Usage: # ./test <file path> <no. of threads> 3. Run: # ./test file_1 15 Sample Output: Starting 15 write threads to file_1 at different offsets and write sizes... Parallelly reading the file for any data corruption... DATA CORRUPTION HIT Actual: '', Expected: 'K'd , start:4581061500, end:5039167650 ... For More info, refer file "V_loop<%d>char<%c>" which gets created newly to capture the corrupted data as soon as corruption is hit. Test system details: #CPUS: 2 #CORES: 6 SYSTEM MEMORY: 15 GB SWAP MEMORY: 17 GB
Created attachment 99321 [details] File "random_multi_write_read.c" gives data corruption on ext4
2.6.32 is obsolete, please take this up with your Red Hat support