Friday, 12 February 2016

Git disabe auto gc

I saw several times the following message from git: "Auto packing deferred; not on AC". This is very annoying because of the Google Repo tool for Windows create symbolic link to the git folders and this one block to use the 'git gc' command. You can disable permanently the working of gc: git config --global gc.auto 0

Monday, 8 February 2016

Quick search of missing Linux developer package

There is a little trick to find that library which is missing: e.g.: You get the next error at compile: fatal error: X11/Xlib.h: No such file or directory I always forgot which package should I install but this little application can help me out the problem: apt-file search Xlib.h Sometime you have to install manually the apt-file package too.

Saturday, 6 February 2016

NAS tcp tuning

I found some article that set up for low-latency general purpose network desktop.
This settings keep until reboot.

$ su
$ echo 12582912 > /proc/sys/net/core/rmem_max
$ echo 12582912 > /proc/sys/net/core/wmem_max
$ echo '10240 87380 12582912' > /proc/sys/net/ipv4/tcp_rmem
$ echo '10240 87380 12582912' > /proc/sys/net/ipv4/tcp_wmem
$ echo 32768 > /proc/sys/net/core/netdev_max_backlog

On NAS the previous settings decrease the number of this kind of messages from dmesg:

TCP: Peer xxx.yyy.191.66:8153/4109 unexpectedly shrunk window 735219438:735220878 (repaired)
TCP: Peer xxx.yyy.191.66:8153/4109 unexpectedly shrunk window 735219438:735220878 (repaired)

Git performance hacks on Windows

I also meet the git issue about performance. There're some option that can help a little bit: 

$ git config --global core.preloadindex true
$ git config --global core.fscache true
$ git config --global gc.auto 256