kk Blog —— 通用基础


date [-d @int|str] [+%s|"+%F %T"]
netstat -ltunp
sar -n DEV 1

debuginfo 编译速度

Have a look into /usr/lib/rpm/macros:

1
2
3
4
5
6
7
8
#       Compression type and level for source/binary package payloads.
#               "w9.gzdio"      gzip level 9 (default).
#               "w9.bzdio"      bzip2 level 9.
#               "w7.xzdio"      xz level 7, xz's default.
#               "w7.lzdio"      lzma-alone level 7, lzma's default
#
#%_source_payload       w9.gzdio
#%_binary_payload       w9.gzdio

binkernel.spec中加入

1
2
%_source_payload       w5.gzdio
%_binary_payload       w5.gzdio

略微降低压缩率,大大提高打包速度。kernel增加600K,debuginfo增加3M,时间从14分钟降至2分钟内

debug, base

« busybox c 文件锁flock »