| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Multithreaded directory sweeps |
Coridon Henshaw wrote in a message to All: CH> I have a program that needs to gather the names and CH> statistics of all files on any number of drives. Would CH> there be any advantage in making the scanning subsystem CH> multithreaded? Yes, especially if the disks were on different controllers. CH> It seems to me that scanning two or more partitions at a CH> time would be faster than scanning only one at a time if the CH> partitions where on different physical disks and one or more CH> of the drives where SCSI. Is this correct, or would there CH> be no advantage at all? SCSI is not the problem, since it can intelligently reorder your requests. As you suspect, trying to multithread scans of two partitions on the same physical disk would significantly increase head motion and greatly slow you down, which is not what you want to happen. CH> In any case, how can I find out which physical disk a CH> partition is located on and the disk subsystem type? You can call the Generic IOCtl facilities using Category 08h (IOCTL_DISK) and 09h (IOCTL_PHYSICALDISK) commands, especially DSK_GETLOGICALMAP (21h). Be aware that a "physical disk" may not correspond to what you think of as such if there are device drivers manipulating the tables to create a RAID or striping volume, for example. -- Mike ---* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107) SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 323/107 170/400 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.