mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-15 13:31:54 +00:00
f48798d0c3
This is the first part of rewriting Flock to C to significantly reduce memory footprint of individual machines from 20+M in Python to (goal) less than 1M. Now the process eats ~460k and I suspect that this won't even be the consumption per machine in total as fork() is involved and some parts of the memory will be heavily shared.
17 lines
263 B
C
17 lines
263 B
C
#define _GNU_SOURCE
|
|
|
|
#ifndef INCLUDE_FLOCK_H
|
|
#define INCLUDE_FLOCK_H
|
|
#include "lib/birdlib.h"
|
|
|
|
void hypervisor_exposed_fork(void);
|
|
|
|
struct flock_config {
|
|
const char *hypervisor_name;
|
|
const char *exec_name;
|
|
};
|
|
|
|
extern struct flock_config flock_config;
|
|
|
|
#endif
|