Adding to the excellent posts above from Marianne and Nicolai.
Be aware that you wil need more memory when turning mpx on ... like this ...
The total amount of shared memory that is used for each tape drive is:
(number_data_buffers * size_data_buffers) * number_tape_drives * max_multiplexing_setting
For two tape drives, each with a multiplexing setting of 4 and with 16 buffers of
256KB, the total shared memory usage would be: (16 * 262144) * 2 * 4 = 32768 KB (32 MB)
So from this we can see that suddenly increasing MPX to x16 across one of more drives causes a massive increase in the amount of memory required.
Additionally ...
From my bptm log, we see I have x12 data buffers, each with a size of 131072 ...
08:55:45.665 [18200] <2> io_init: using 131072 data buffer size
08:55:45.665 [18200] <2> io_init: CINDEX 0, sched Kbytes for monitoring = 60000
08:55:45.665 [18200] <2> io_init: using 12 data buffers
... therefore, each tape drive, or each stream to a tape drive will require 131072 x 12 = 1572864
Now this example is actually from a MPX backup with 2 streams, so you might think that the amount of shared memory will be 1572864 x2 = 3145728
No, here is the catch ...
Looking down my bptm log I find these lines ...
08:55:45.748 [18200] <2> mpx_setup_shm: buf control for CINDEX 0 is ffffffff79a00000
08:55:45.748 [18200] <2> mpx_setup_shm: shared memory address for group 0 is ffffffff76800000, size is 6291456, shmid is 117440636
08:55:45.748 [18200] <2> mpx_setup_shm: shared memory address for CINDEX 0 is ffffffff76800000, group 0, num_active 1
So we see the amount of memory is 117440636
Now, 6291456/ 1572864 = 4
So, what has happened, is even though I have one tape drive, the amount of memory NBU will allocate is the amount of memory required by x4 tape drives. Likewise, if I had say mpx setting of 8 and ran 5 streams, it would use enough memory as if 8 streams were running, so it always rounds up to the nearest 4.
This is not a fault, it actually is designed for reasons of efficiency, one of the BL guys sis explain the exact details, but for the moment they escape me.
Hope this helps.
Martin