Soft Patch Panel
 help / color / mirror / Atom feed
* [spp] [PATCH 0/5] Add config command
@ 2019-02-04  3:11 ogawa.yasufumi
  2019-02-04  3:11 ` [spp] [PATCH 1/5] controller: add " ogawa.yasufumi
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ogawa.yasufumi @ 2019-02-04  3:11 UTC (permalink / raw)
  To: spp, ferruh.yigit, ogawa.yasufumi

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

`config` command is for managing default configurations of SPP CLI.
For example, you can change default command prompt `spp > ` to another
one.

List of all of configurations is referred with `config`, or list of
started with `p` is referred with `config p`.

  # show all configs
  spp > config
  - max_secondary: "16"	# The maximum number of secondary processes
  - sec_nfv_nof_lcores: "1"	# Default num of lcores for workers ...
  - topo_size: "60%"	# Percentage or ratio of topo
  - sec_base_lcore: "1"	# Shared lcore among secondaryes
  - prompt: "spp > "	# Command prompt
  - sec_pcap_nof_lcores: "2"	# Default num of lcores for ...
  - sec_mirror_nof_lcores: "2"	# Default num of lcores for ...
  ...

  # only started with `p`
  spp > config p
  - prompt: "spp > "        # Command prompt

To change configuration, specify key and its value.

  # set prompt
  Set prompt: "$ spp "
  $ spp

Config params starting with `sec_` is used for options of `pri; launch`
command.

  - sec_vf_nof_lcores
  - sec_mirror_nof_lcores
  - sec_pcap_nof_lcores
  ...

For instance, if secondary ID is `3` and `sec_vf_nof_lcores` is 3,
woker lcores is suggested as `3-5`, started from `3` and use three
cores.


Yasufumi Ogawa (5):
  controller: add config command
  controller: refactor pri launch command
  controller: remove nouse check_sec_cmds
  controller: add max_secondary to config
  controller: change nof worker lcores configurable

 src/controller/commands/pri.py | 121 ++++++++++++++++++++++++++------
 src/controller/shell.py        | 152 +++++++++++++++++++++++++++++------------
 2 files changed, 210 insertions(+), 63 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-02-04  3:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-04  3:11 [spp] [PATCH 0/5] Add config command ogawa.yasufumi
2019-02-04  3:11 ` [spp] [PATCH 1/5] controller: add " ogawa.yasufumi
2019-02-04  3:11 ` [spp] [PATCH 2/5] controller: refactor pri launch command ogawa.yasufumi
2019-02-04  3:11 ` [spp] [PATCH 3/5] controller: remove nouse check_sec_cmds ogawa.yasufumi
2019-02-04  3:12 ` [spp] [PATCH 4/5] controller: add max_secondary to config ogawa.yasufumi
2019-02-04  3:12 ` [spp] [PATCH 5/5] controller: change nof worker lcores configurable ogawa.yasufumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).