The preload method will transfer the whole file in a buffer and cache it
so read/lseek operations are faster.
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential D33410
loader: tftp: Add preload method manu on Dec 13 2021, 10:49 AM. Authored by Tags None Referenced Files
Details
The preload method will transfer the whole file in a buffer and cache it MFC after: 2 weeks x time-base + time-tftp-prefetch +-----------------------------------------------------------------------------------------------------------------------------+ |+ | |+ | |+ | |+ | |+ | |+ | |+ | |+ | |+ x | |+ xx x x x x x x x| |A |___________M________A_____________________| | +-----------------------------------------------------------------------------------------------------------------------------+ N Min Max Median Avg Stddev x 10 104 193 116 128.9 29.856881 + 10 19 19 19 19 0 Difference at 95.0% confidence -109.9 +/- 19.8367 -85.2599% +/- 2.26839% (Student's t, pooled s = 21.112)
Diff Detail
Event TimelineComment Actions I was starting to think.... we do have read ahead buffer (f_rabuf) in struct open_file, perhaps we could extend that interface to accommodate preload data? Comment Actions Core functionality looks good, have some edge case questions.
Comment Actions I like the new messages for failure.
Comment Actions Unfortunately thiss broke tftp kernel loading.
Comment Actions I'm obviously using tftp kernel loading and this whole series point was to improve it :)
Mhm, I can see that happening but I wonder why you hit this error while I don't ...
That would work yes but we will restart the transfer, I think that the correct fix should be to copy the data if currclock == 1 and reset to 0 only if currblock > 1 (as we don't have the other block anymore). |