Browse Source

TT#111357 use a better default for recording threads

Change-Id: Id9f3d0404505e87bf785e52680c5a771d6d58828
pull/1218/head
Richard Fuchs 5 years ago
parent
commit
9d332f9b0f
2 changed files with 7 additions and 2 deletions
  1. +4
    -1
      recording-daemon/main.c
  2. +3
    -1
      recording-daemon/rtpengine-recording.pod

+ 4
- 1
recording-daemon/main.c View File

@ -31,7 +31,7 @@
int ktable = 0;
int num_threads = 8;
int num_threads;
enum output_storage_enum output_storage = OUTPUT_STORAGE_FILE;
char *spool_dir = NULL;
char *output_dir = NULL;
@ -272,6 +272,9 @@ static void options(int *argc, char ***argv) {
die("Invalid mode value '%s'", chmod_mode);
output_chmod = m;
}
if (num_threads <= 0)
num_threads = num_cpu_cores(8);
}
static void options_free(void) {


+ 3
- 1
recording-daemon/rtpengine-recording.pod View File

@ -118,7 +118,9 @@ reside on a file system that supports the B<inotify> mechanism.
=item B<--num-threads=>I<INT>
How many worker threads to launch. Defaults to B<8>.
How many worker threads to launch. Defaults to the number of CPU cores
available, or B<8> if there are fewer than that or if the number is not
known.
=item B<--thread-stack=>I<INT>


Loading…
Cancel
Save