Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stress-ng --hdd arguments documentation unclear #158

Closed
dmvs000 opened this issue Nov 11, 2021 · 7 comments
Closed

stress-ng --hdd arguments documentation unclear #158

dmvs000 opened this issue Nov 11, 2021 · 7 comments

Comments

@dmvs000
Copy link

dmvs000 commented Nov 11, 2021

Hello, I'm stress testing my Disk IO using the below hdd command :

stress-ng --hdd 3 --hdd-write-size 512 --hdd-bytes 6g --hdd-opts direct,sync,wr-rnd,rd-rnd --timeout 0 (This works and results in successful exit)

However, when I change the workers number (-hdd) to 5, it fails as given below:
azureuser@linuxTestUbuntu:~$ stress-ng --hdd 5 --hdd-write-size 512 --hdd-bytes 256g --hdd-opts direct,sync,wr-rnd,rd-rnd --timeout 0 --verbose
stress-ng: debug: [12316] 2 processors online, 2 processors configured
stress-ng: info: [12316] dispatching hogs: 5 hdd
stress-ng: debug: [12316] cache allocate: default cache size: 36608K
stress-ng: debug: [12316] starting stressors
stress-ng: debug: [12317] stress-ng-hdd: started [12317] (instance 0)
stress-ng: fail: [12317] stress-ng-hdd: write failed, errno=22 (Invalid argument)
stress-ng: debug: [12316] 5 stressors spawned
stress-ng: debug: [12317] stress-ng-hdd: exited [12317] (instance 0)
stress-ng: debug: [12319] stress-ng-hdd: started [12319] (instance 2)
stress-ng: fail: [12319] stress-ng-hdd: write failed, errno=22 (Invalid argument)
stress-ng: debug: [12319] stress-ng-hdd: exited [12319] (instance 2)
stress-ng: debug: [12318] stress-ng-hdd: started [12318] (instance 1)
stress-ng: error: [12316] process 12317 (stress-ng-hdd) terminated with an error, exit status=1 (stress-ng core failure)
stress-ng: debug: [12316] process [12317] terminated
stress-ng: fail: [12318] stress-ng-hdd: write failed, errno=22 (Invalid argument)
stress-ng: debug: [12320] stress-ng-hdd: started [12320] (instance 3)
stress-ng: debug: [12318] stress-ng-hdd: exited [12318] (instance 1)
stress-ng: fail: [12320] stress-ng-hdd: write failed, errno=22 (Invalid argument)
stress-ng: error: [12316] process 12318 (stress-ng-hdd) terminated with an error, exit status=1 (stress-ng core failure)
stress-ng: debug: [12316] process [12318] terminated
stress-ng: error: [12316] process 12319 (stress-ng-hdd) terminated with an error, exit status=1 (stress-ng core failure)
stress-ng: debug: [12316] process [12319] terminated
stress-ng: debug: [12321] stress-ng-hdd: started [12321] (instance 4)
stress-ng: debug: [12320] stress-ng-hdd: exited [12320] (instance 3)
stress-ng: fail: [12321] stress-ng-hdd: write failed, errno=22 (Invalid argument)
stress-ng: debug: [12321] stress-ng-hdd: exited [12321] (instance 4)
stress-ng: error: [12316] process 12320 (stress-ng-hdd) terminated with an error, exit status=1 (stress-ng core failure)
stress-ng: debug: [12316] process [12320] terminated
stress-ng: error: [12316] process 12321 (stress-ng-hdd) terminated with an error, exit status=1 (stress-ng core failure)
stress-ng: debug: [12316] process [12321] terminated
stress-ng: info: [12316] unsuccessful run completed in 0.00s

At first, I thought this could be a resource issue, but I have tried giving the same command with -hdd as 16 (which is more than 5), this seems to work !!

After multiple trials of running this program and with varied value of -hdd and -hdd-bytes, there seems to be a relation between -hdd and -hdd-bytes arguments, what I have observed is that if -hdd is a divisible by -hdd-bytes, the program seems to run okay and when that isn't the case, it doesn't seem to run at all, failing with errno 22 invalid argument (just as above).

I have tried to read the source code but couldn't get what could be causing the issue.

@ColinIanKing
Copy link
Owner

ColinIanKing commented Nov 11, 2021 via email

@ColinIanKing
Copy link
Owner

Thanks for reporting this. Fix committed, commit 9bbe45d - please test and verify this addresses the issue.

@dmvs000
Copy link
Author

dmvs000 commented Nov 15, 2021

Tested and it is working now. Thank you. May I know when the build will be updated in the ubuntu archives?

@ColinIanKing
Copy link
Owner

ColinIanKing commented Nov 15, 2021 via email

@dmvs000
Copy link
Author

dmvs000 commented Nov 15, 2021

I'm looking for releases for OSes Ubuntu 16.04-LTS and Ubuntu 18.04-LTS

@ColinIanKing
Copy link
Owner

ColinIanKing commented Nov 15, 2021 via email

@ColinIanKing
Copy link
Owner

See: https://bugs.launchpad.net/bugs/1951152 - SRU for impish, hirsute, focal, bionic. Older releases are too large a delta to easily SRU for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants