Welcome, Guest. Please login or register.

Author Topic: How does the filesystem handles multiple packets ?  (Read 1993 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: How does the filesystem handles multiple packets ?
« on: March 21, 2006, 05:20:21 PM »
Packets are processed in sequence. So yes, you can save any number of files simultanously.

However, depending on the filesystem, doing multiple (smallish) writes might result in massive seeking between the physical write locations. With such filesystems it is faster to actually write files in sequence.

Smarter filesystems such as PFS cache the writes in a way multiple writes don't slow the overall performance.

For best overall results you should do your own caching: that is collect the smaller writes to a larger buffer, and only ACTION_WRITE the buffer when it gets full. Buffer size should probably be at least 4K, but even upto 32K or 64K can still improve performance. This is with tons of small writes and large result files.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: How does the filesystem handles multiple packets ?
« Reply #1 on: March 21, 2006, 05:23:09 PM »
- dupe zapped -