forked from usnistgov/ndn-dpdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfileserver-args.ts
34 lines (32 loc) · 906 Bytes
/
fileserver-args.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type { ActivateFileServerArgs } from "@usnistgov/ndn-dpdk";
import stdout from "stdout-stream";
const args: ActivateFileServerArgs = {
eal: {
coresPerNuma: { 0: 4, 1: 0 },
memPerNuma: { 0: 4096, 1: 0 },
filePrefix: "fileserver",
},
mempool: {
DIRECT: { capacity: 65535, dataroom: 9146 },
INDIRECT: { capacity: 65535 },
PAYLOAD: { capacity: 65535, dataroom: 9146 },
},
face: {
scheme: "memif",
socketName: "/run/ndn/fileserver.sock",
id: 0,
role: "client",
dataroom: 9000,
},
fileServer: {
nThreads: 1,
mounts: [
{ prefix: "/fileserver/usr-local-bin", path: "/usr/local/bin" },
{ prefix: "/fileserver/usr-local-lib", path: "/usr/local/lib" },
{ prefix: "/fileserver/usr-local-share", path: "/usr/local/share" },
],
segmentLen: 6 * 1024,
uringCapacity: 4096,
},
};
stdout.write(JSON.stringify(args));