Andrew Gazelka
10/04/2024, 4:58 AMAndrew Gazelka
10/04/2024, 5:01 AMread opAndrew Gazelka
10/04/2024, 5:01 AMDesmond Cheong
10/04/2024, 5:02 AMAndrew Gazelka
10/04/2024, 5:04 AMAndrew Gazelka
10/04/2024, 5:04 AMread_exactAndrew Gazelka
10/04/2024, 5:05 AMAndrew Gazelka
10/04/2024, 5:05 AMAndrew Gazelka
10/04/2024, 5:05 AMAndrew Gazelka
10/04/2024, 5:05 AMDesmond Cheong
10/04/2024, 5:05 AMbytes_read when I get home and confirmDesmond Cheong
10/04/2024, 5:05 AMAndrew Gazelka
10/04/2024, 5:06 AMAndrew Gazelka
10/04/2024, 5:06 AMTypical maximum read sizes are often in the range of 16 KiB to 128 KiB. For example:
Andrew Gazelka
10/04/2024, 5:06 AMAndrew Gazelka
10/04/2024, 5:06 AMAndrew Gazelka
10/04/2024, 5:07 AMAndrew Gazelka
10/04/2024, 5:08 AMAndrew Gazelka
10/04/2024, 5:08 AMDesmond Cheong
10/04/2024, 5:10 AMAndrew Gazelka
10/04/2024, 5:17 AMAndrew Gazelka
10/04/2024, 5:17 AMAndrew Gazelka
10/04/2024, 5:18 AMAndrew Gazelka
10/04/2024, 5:18 AMDesmond Cheong
10/04/2024, 5:18 AMAndrew Gazelka
10/04/2024, 5:49 AMAndrew Gazelka
10/04/2024, 5:49 AMAndrew Gazelka
10/04/2024, 5:49 AMDesmond Cheong
10/04/2024, 6:26 AMDesmond Cheong
10/04/2024, 6:27 AMalso I think your previous implementation did not read 4MiB into each slab as you just did oneFwiw I just tried printing the bytes read returned from theopread
read() and it's giving me 4194304 bytes consistently. Between AI and myself, I trust myself more 🙂Andrew Gazelka
10/04/2024, 6:40 AMAndrew Gazelka
10/04/2024, 6:40 AMDesmond Cheong
10/04/2024, 7:03 AMread() syscall over network should still go up to 2gb (for linux, posix limit might be smaller I believe). Packet sizes themselves might be smaller, with traditional tcp or udp the max packet size is 65536, but using other protocols this can always go to several gigabytes. Would have to fact check myself, but I think in this case the answer is kinda nuanced, and I wouldn't take the first (or even second) ai message too seriouslyAndrew Gazelka
10/04/2024, 7:05 AMAndrew Gazelka
10/04/2024, 7:05 AMAndrew Gazelka
10/04/2024, 7:05 AMAndrew Gazelka
10/04/2024, 7:24 AMAndrew Gazelka
10/04/2024, 7:41 AMAndrew Gazelka
10/04/2024, 7:41 AMAndrew Gazelka
10/04/2024, 7:42 AMDesmond Cheong
10/04/2024, 7:56 AMnote L1 is 64 KByeah but we read into memory first, then it gets pulled into cache as we operate on it
Desmond Cheong
10/04/2024, 7:56 AMThinking for PR could be beneficial to pair program to cut down review time? Idkyeah down to pair
Andrew Gazelka
10/04/2024, 8:00 AMAndrew Gazelka
10/04/2024, 8:01 AMAndrew Gazelka
10/04/2024, 8:01 AMAndrew Gazelka
10/04/2024, 8:01 AMAndrew Gazelka
10/04/2024, 8:01 AMAndrew Gazelka
10/04/2024, 8:01 AMAndrew Gazelka
10/04/2024, 8:01 AM