On Jul 11, 2025, Andrew Makhorin wrote: > > > > On Jul 11, 2025, Andrew Makhorin wrote: > > > I encountered a serious bug on moving files from one folder to another > > > with standard "Files" application in Gnome. Namely, when the > > > number of files in the distination folder is about 4,500, the > > > "Files" application deadly hangs, and only restaring the system > > > helps. The files are mainly pdf documents, the total amount is > > > about 10 Gb. > > > > How long did you leave it before rebooting? > > The bug appears spontaneously, sometimes in 30 minutes, sometimes in 5 > mins.
Sorry, I meant how long do you let the system keep chugging along after it appears to hang? > > I'm not sure 100%, however, I think the bug is somehow related to > displaying the destination folder contents during moving the files. > > > What type of drives are the source / target? Spinning Rust? SSD? NVMe? > > Both source and destination folders are on the same 500 Gb SSD, ext4 FS. OK, same drive means the entire process is going to be serial; basically this series of steps is pretty much what's going on: 1. Open file for reading 2. Read to cache 3. Close file 4. Open file for writing 5. Write from cache 6. Close file 7. Go back to step 1 And that's ignoring all the "other I/O" the disk is needing to do. Doesn't help any that file open/close is more expensive than just reading/writing a handle that's already open. -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860
signature.asc
Description: PGP signature