


Data Buffer Size and Quantity Settings |
![]() |
![]() |
Written by Paul Winkeler | |
Tuesday, 23 December 2003 | |
Much has been written on this subject already yet it continues to be a topic fraught with pitfalls and mired in confusion. Perhaps by describing the way NetBackup's tape writing (as implemented in bptm process) operates some of this veil can be lifted and tape drives can be made to hum more efficiently.
For each NetBackup job stream writing to tape, a bptm process is launched. Part of its launch information packet includes a description of the source of its data, i.e. the client machine, the NetBackup policy and schedule, etc. However, the first bptm process does not directly concern itself with contacting the client, instead, it forks off a child process to start listening on a predetermined TCP/IP socket for the client to contact it. The parent process meanwhile proceeds to allocate, open and otherwise prepare a tape and a tape drive to start writing the eagerly anticipated client data. Obviously the two bptm processes need to hand the data read from the TCP/IP socket on to the tape writer as efficiently as possibly, preferrably without copying it around anymore than necessary. To this end they make use of an operating system feature known as shared memory. By default 8 32KByte buffers are set aside for this very purpose. The child copies the incoming network data stream into these buffers while the parent hands them off directly to the target tape device driver to be written out. A few observations about these buffers then:
A future installment will deal with the analysis of a NetBackup environment in determining optimal buffer size and quantity settings. |
|
Last Updated ( Thursday, 26 April 2007 ) |
< Prev | Next > |
---|