主页

Limit process cpu usage using cgroup

Reference Limit process cpu usage using cgroup limit_cpu_usage() { local pid=$1 if mount -l | grep -q cgroup2;then local cgroup_dir=$(mount -l | grep cgroup2 | awk '{print $3}' | head -n1) # Configure the system to mount cgroups-v2 by default during system boot by the systemd system and service manager: # grubby --update-kernel=/boot...

阅读更多

Linux sched

man page sched 每个线程对应一种调度策略和一个静态优先级 对于SCHED_OTHER, SCHED_IDLE, SCHED_BATCH调度策略的线程,静态优先级固定为0 对于SCHED_FIFO, SCHED_RR调度策略的线程,静态优先级可设置范围是1-99 对于每一个静态优先级,系统维护一个拥有此优先级的可执行线程列表 调度的时候,按照静态优先级从大到小的顺序,从队列中取线程进行调度。 因此,拥有SCHED_FIFO, SCHED_RR调度策略的线程总是会比SCHED_OTHER, SCHED_IDLE, SCHED_BATCH调度策略的线程优先, 并且会抢占(当SCHED_FIFO, SCHED_RR调度策略的线程需要调度时,会抢占SCHED_OTHER, S...

阅读更多

OpenShift Summary

redhat doc install SNO Install SNO https://docs.google.com/document/d/1UZAAlbTU7g97vqkWhsfL2i3LpOaPhmMSus3oi6m-cXI/edit# OpenShift Container Platform on a single node is a specialized installation that requires the creation of a special ignition configuration ISO. The primary use case is for edge computing workloads, including intermittent c...

阅读更多

PTP Summary From 1588

redhat doc FUJITSU doc NetTimeLogic doc Summary From 1588 Event message是需要生成时间戳的message,General message是不需要生成时间戳的消息。 The computation of offset and propagation time assumes that the master-to-slave and slave-to-master propagation times are equal. Any asymmetry in propagation time introduces an error in the computed value of the clock offset....

阅读更多

OVN - localnet + virtualVM + qos

https://bugzilla.redhat.com/show_bug.cgi?id=2136716 port1=ens1f0np0 port2=ens1f1np1 ip link set $port1 up ip addr add 177.1.1.1/16 dev $port1 &>/dev/null systemctl start openvswitch systemctl start ovn-northd ovn-sbctl set-connection ptcp:6642 ovn-nbctl set-connection ptcp:6641 ovs-vsctl set Open_vSwitch . external-ids:system-id=hv1 ov...

阅读更多

PTP VS NTP

doc overview The basic principles of the two protocols are the same. Computers or other devices that have a clock are connected in a network and form a hierarchy of time sources in which time is distributed from top to bottom. The devices on top are normally synchronized to a reference time source (e.g. a timing signal from a GPS receiver)....

阅读更多

PTP BASIC

redhat doc FUJITSU doc NetTimeLogic doc FUJITSU DOC Event ordering is very important, for incident analysis, performance analysis and so on. Event ordering is based on timestamps. Timestamps are collected from multiple servers, so Clock synchronization is important. If precision and accuracy of clock synchronization are bad, event ordering ca...

阅读更多

connect Jenkins agent using "ssh username with private key"

using agent managing node stackoverflow cloudbees Step 1. prepare on agent # create user(name could be others then jenkins) useradd -d /var/lib/jenkins jenkins // use /home/jenkins as home directory is available too # setup new user password passwd jenkins # change user su - jenkins # create ssh key mkdir /var/lib/jenkins/.ssh touch /var/l...

阅读更多