ubuntu 和linux 上面git clone 的时候内存不足导致失败的最完美解决 index-pack died of signal

warning: redirecting to https://android.googlesource.com/kernel/goldfish.git/ remote: Sending approximately 1.60 GiB ... remote: Counting objects: 119, done remote: Finding sources: 100% (119/119)

 

error: index-pack died of signal 9451266), 563.58 MiB | 7.25 MiB/s

fatal: index-pack failed

 

最完美的解决就是

1: 添加虚拟内存,这里需要增加的大小最好大一点

参考:https://blog.csdn.net/qq_17046291/article/details/79023305

2: 将虚拟内存配置使用,否则使用率为0 的话一样抱错

在/etc/stsctl.conf 下加了
vm.swappiness = 100

最后一定要 sysctl -p

你可能感兴趣的:(Linux,驱动程序)