Skip to content

Instantly share code, notes, and snippets.

@yourchanges
yourchanges / sysctl.conf.md
Created September 27, 2023 06:20 — forked from jfeilbach/sysctl.conf.md
10/40 Gb NIC Linux Kernel Performance Tuning for samba file server

TCP tuning

The most important TCP tuning areas since kernel 4.9 are:

  • packet pacing
  • dynamic TSO sizing
  • TCP small queues
  • BBR TCP congestion algorithm

Definitions

  • Gb = gigabit
@yourchanges
yourchanges / HighTrafficServerSettings.md
Created September 27, 2023 06:19 — forked from fschiettecatte/HighTrafficServerSettings.md
High Traffic Server Settings on RHEL / AlmaLinux / Rocky / EuroLinux / CentOS 8

High Traffic Server Settings on RHEL / AlmaLinux / Rocky / EuroLinux / CentOS 8

I recently did some work to optimize the network configuration of an AlmaLinux 8 based web server that receives a lot of traffic.

Of course these settings also apply to RHEL / Rocky / EuroLinux / CentOS 8 (hereafter referred to as Linux 8.) I think these should also work on RHEL / AlmaLinux / Rocky / EuroLinux 9 as well but I have not yet tested them.

There is a lot of information on the web for this and it distills down to a minimum recommended configuration, and a recommended configuration.

The minimum recommended configuration should be sufficient for servers with less than 10Gb, and the recommended configuration should be sufficient for servers with 10Gb or more.

redis-traffic-stats

Summary

  • Duration:
    • 2020-07-29 15:02:40 - 2020-07-29 15:02:58 (18s)
  • Total Traffic:
    • 197811966 bytes (10989553.67 bytes/sec)
  • Total Requests:
@yourchanges
yourchanges / 9.md
Created August 23, 2019 09:03
9.md

LPUSH

Key

@yourchanges
yourchanges / 8.md
Created August 23, 2019 09:02
8.md

DEL

Key

@yourchanges
yourchanges / 7.md
Created August 23, 2019 09:01
7.md

URN:PRODUCTINFOMODEL:80374

Key

@yourchanges
yourchanges / 3.md
Last active August 23, 2019 08:59
3.md

redis-traffic-stats

Summary

  • Duration:
    • 2019-08-23 16:40:52 - 2019-08-23 16:41:15 (23s)
  • Total Traffic:
    • 200029476 bytes (8696933.74 bytes/sec)
  • Total Requests:
@yourchanges
yourchanges / 1.md
Last active July 29, 2020 06:56
test.md

redis-traffic-stats

Summary

  • Duration:
    • 2020-07-29 14:45:22 - 2020-07-29 14:45:30 (8s)
  • Total Traffic:
    • 115813343 bytes (14476667.88 bytes/sec)
  • Total Requests:
@yourchanges
yourchanges / ffmpeg.md
Created April 26, 2018 09:43 — forked from v5tech/ffmpeg.md
ffmpeg视频合并、格式转换、截图

使用ffmpeg合并MP4文件

ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i "Apache Sqoop Tutorial Part 2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "Apache Sqoop Tutorial Part 3.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate3.ts
ffmpeg -i "Apache Sqoop Tutorial Part 4.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate4.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -c copy -bsf:a aac_adtstoasc "Apache Sqoop Tutorial.mp4"
We can't make this file beautiful and searchable because it's too large.
pattern,cnt
^,1657
-$,376
--,355
root.*/file.*\n,348
(?m)^hello world,338
\s+,296
\s*,278
^[a-z],275
[cg]pu,245