Replies: 10 comments 7 replies
-
I watched 20+threads created and destoryed by htop. |
Beta Was this translation helpful? Give feedback.
-
20+thousands threads |
Beta Was this translation helpful? Give feedback.
-
I am unable to reproduce. I ran your code and only saw 33 threads. |
Beta Was this translation helpful? Give feedback.
-
Also, as far as perf, this is going to be slow. You are making a lot of tiny writes sequentially. |
Beta Was this translation helpful? Give feedback.
-
@Noah-Kennedy thanks for reply. when i started running this code, by htop i got the picture 1. after 1min,i got picture 2. u can see that the pids of threads grown by 1k+. did it mean many threads created and destoryed? is it good way if a threadpool used here? |
Beta Was this translation helpful? Give feedback.
-
the parent pid was 102663. then the pids of worker-threads was always growing |
Beta Was this translation helpful? Give feedback.
-
I know write_at is a random access call. so it's slow than mmap or traditional io. the issue is not about speed. u can see in the picture when i ran this code a while ,some of the 1024 files length was no longer growing. |
Beta Was this translation helpful? Give feedback.
-
sorry for my poor english . can u get what i try to say? |
Beta Was this translation helpful? Give feedback.
-
@Noah-Kennedy thanks. |
Beta Was this translation helpful? Give feedback.
-
hi, anything new about this issue? |
Beta Was this translation helpful? Give feedback.
-
hello
I want to test performance on mmap,BIO,AIO,and iouring(by tokio-uring) by write 1KB data to 1G files 1024 times . then i write the code bellow.when program running i find something unexpected.
Beta Was this translation helpful? Give feedback.
All reactions