Skip to content

iocage console is very slow #95

@chmeeedalf

Description

@chmeeedalf

Running iocage console <jail> is much much slower than running jexec ioc-<jail>. I ktrace'd a run of iocage console <jail> and saw a long list of forking:

  • git (2 times)
  • ldconfig (2 times)
  • cc (2 times)
  • ld.lld
  • objdump
  • sysctl
  • zpool
  • zfs (19 time)
  • jls (5 times)
  • jexec
  • login
  • setfib
  • login
  • sh
  • resizewin
  • sh

All of this takes more than 3 seconds.

Running jexec ioc-<jail> takes under 1 second, with no forking, just a single exec() to the shell.

Questions:

  • Why does it run git?
  • Why the compiler?
  • Why 19 zfs runs?
  • Why 5 jls?

Additionally, the first 0.87 seconds of clock time is in the first python process, which seems like a long time, too, on a 2GHz ARM Cortex-A72.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions