2017-04-05 12:52:21 +02:00
|
|
|
# Example configuration for testing the shared memory node.
|
|
|
|
# Samples are read from a file, passed to the external program
|
|
|
|
# via shared memory, and written back to an output file.
|
|
|
|
|
|
|
|
stats = 1;
|
|
|
|
debug = 10;
|
|
|
|
|
|
|
|
nodes = {
|
2017-04-06 10:34:31 +02:00
|
|
|
file = {
|
2017-04-05 12:52:21 +02:00
|
|
|
type = "file",
|
|
|
|
in = {
|
2017-04-06 12:12:56 +02:00
|
|
|
uri = "/var/log/villas/input.log",
|
2017-04-06 10:34:31 +02:00
|
|
|
rate = 2.0,
|
2017-04-05 12:52:21 +02:00
|
|
|
mode = "r",
|
|
|
|
},
|
|
|
|
out = {
|
2017-04-06 12:12:56 +02:00
|
|
|
uri = "/var/log/villas/output.log",
|
2017-04-05 12:52:21 +02:00
|
|
|
mode = "w"
|
|
|
|
},
|
|
|
|
vectorize = 1
|
|
|
|
},
|
|
|
|
shmem = {
|
|
|
|
type = "shmem",
|
2017-06-14 13:00:43 +02:00
|
|
|
out_name = "/villas1-out",
|
|
|
|
in_name = "/villas1-in",
|
2017-04-15 22:44:26 +02:00
|
|
|
samplelen = 4,
|
|
|
|
queuelen = 32,
|
2017-04-15 22:45:09 +02:00
|
|
|
polling = false,
|
2017-04-05 12:52:21 +02:00
|
|
|
vectorize = 1
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
paths = (
|
|
|
|
{
|
2017-04-06 10:34:31 +02:00
|
|
|
in = "file",
|
2017-04-05 12:52:21 +02:00
|
|
|
out = "shmem",
|
2017-04-06 10:34:31 +02:00
|
|
|
reverse = true,
|
2017-05-07 22:50:50 +02:00
|
|
|
hooks = (
|
|
|
|
{ priority = 10, type = "print" }
|
|
|
|
)
|
2017-04-05 12:52:21 +02:00
|
|
|
}
|
|
|
|
);
|