jonheal;184325 Wrote: 
> Then if you have to open to whole file, you have to bring the whole file
> over the network to load into memory. Using 10MB per file as an example,
> it would take my NSLU2 85 minutes to send the files to the PC for
> Slimserver to process -- which is more or less the time it takes for a
> scan on my system.

"open" doesn't mean "copy".

It just means "find this file and return a 'handle' to it for later
operations".

Opening a file should take very little time (unless you have something
like a large directory where it can take time for the OS to find the
file in the directory), since it just finds the file, checks
permissions and performs no other operations (well maybe updating the
'access time' of the file, but that is effectively in the directory or
inode not the file itself).

Somewhere deep in the OS, there is a table of open files.. the "handle"
points to an item in this table.

It is somewhat similar with network operations... the handle is just
abstracted another layer.

Yeah, the timing -really- sounds like it is reading the whole file.  It
seems that it shouldnt have to do that from the SMB docs.  I know it
doesn't have to do that at all with NFS.  (NFS isn't perfect by any
means.. but random access to files is completely transparent.)


-- 
snarlydwarf
------------------------------------------------------------------------
snarlydwarf's Profile: http://forums.slimdevices.com/member.php?userid=1179
View this thread: http://forums.slimdevices.com/showthread.php?t=33041

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to