# Slow Knife upload (saving the cookbook)

**URL:** https://discourse.chef.io/t/slow-knife-upload-saving-the-cookbook/13322
**Category:** Chef Infra (archive)
**Created:** [July 19, 2018, 1:58pm UTC](https://discourse.chef.io/t/slow-knife-upload-saving-the-cookbook/13322 "2018-07-19T13:58:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![goekhan](https://avatars.discourse-cdn.com/v4/letter/g/3be4f8/32.png) [@goekhan](https://discourse.chef.io/u/goekhan)
#### Post date: [July 19, 2018, 1:58pm UTC](https://discourse.chef.io/t/slow-knife-upload-saving-the-cookbook/13322/1 "2018-07-19T13:58:05Z")

</div>

Hello Chefs,

knife upload is very slow compared to colleagues’. However, it’s not the upload itself but **saving the cookbook** that takes very long. The upload itself takes a blink.

```
-> knife upload cookboks/foobar -VV
Using deployment: dpt123
INFO: Using configuration from /home/g/repo/.chef/knife.rb
INFO: Validating ruby files
INFO: Validating templates
INFO: Syntax OK
**INFO: Saving foobar** <--- takes very long
INFO: Uploading files <--- fast
INFO: Upload complete!
Updated cookbooks/foobar

```

Any idea how to analyze this any further?  
I tried `knife rehash` but that had no effect on speed.

Chef: 14.1.12 on Ubuntu 18.04

---

<div class="post-metadata">

### Author: ![goekhan](https://avatars.discourse-cdn.com/v4/letter/g/3be4f8/32.png) [@goekhan](https://discourse.chef.io/u/goekhan)
#### Post date: [July 19, 2018, 3:00pm UTC](https://discourse.chef.io/t/slow-knife-upload-saving-the-cookbook/13322/2 "2018-07-19T15:00:56Z")

</div>

I analyzed the **Saving** step further and found out that it actually is calculating checksums and merging them afterwards:

> <https://github.com/chef/chef/blob/4ca23a0dd98c59e1cae29fd7ad6e485cbb12c2b3/lib/chef/cookbook_uploader.rb#L54>

But I still don’t get how the whole process takes about couple of seconds on my colleagues’ machines vs 1min52sec on my machine ☹
