Chapter 6 Accessing the Harmonic MediaGrid
© 2017 Harmonic Inc. All rights reserved. 191 Harmonic MediaGrid Release 4.1
Mounting a Harmonic MediaGrid File System Using Linux
Enabling Multi-NIC Usage on Linux
Computers with multiple Ethernet ports or NICs (Network Interface Card) can utilize all ports to
access data on Harmonic MediaGrid. This increases bandwidth and reduces latency.
The Harmonic MediaGrid system must be mounted, as described previously, to enable multi-NIC
usage. Use the following commands to enable multi-NIC support on a Linux system.
To enable multi-NIC usage:
1. To use specific interfaces, use the following mount option:
iflist=a:b
Where “a” is one interface to use, such as eth0, and “b” is another interface to use, such as
eth1. Use a colon “:” to separate the list of interfaces.
2. To use all interfaces, use the following mount option:
allnic
This option uses all of the system’s Ethernet interfaces.
The Linux FSD performs connection load balancing by adding routing table entries for each
ContentServer connection. Most Linux kernels ignore routing table entries when NICs are
connected to the same subnet.
3. Add the following lines to the
/etc/sysctl.conf file to prevent this behavior from defeating
connection balancing:
net.ipv4.conf.default.arp_ignore = 1
net.ipv4.conf.default.arp_announce = 1
4. Restart the computer after making these additions.
maxdeferredclose Specify the maximum number of handles on a per mount basis. The default value
is 64.
Setting this to zero will result in the close system call blocking until data is flushed
to the Harmonic MediaGrid. Setting this to zero will increase latency times when
working with a large number of files.
maxsmallfilesize Hint to pre-open prediction code. The default value is 1048576.
smallfilewindow Hint to pre-open prediction code. The default value is 500.
smallfilethreshold Hint to pre-open prediction code. The default value is 3.
cachefilesize Hint to pre-open prediction code. Specify the maximum number of bytes to pre-
read for a file. The default value is 20971520.
maxpendingbulkclose Specify the maximum number of handles for deferred close on a per driver basis.
The default value is 128.
Setting to zero may result in the close system call blocking until the handle is
closed in the Harmonic MediaGrid. Setting this to zero will increase latency times
when working with a large number of files.
numberpreopen Specify the number of files to open in advance based on prediction logic. The
default value is 8.
Table 6–2: Linux FSD Mount Options
continued
Option Description