# How Change Block Size

**URL:** https://forum.syncthing.net/t/how-change-block-size/10522
**Category:** Support
**Created:** [September 8, 2017, 1:20pm UTC](https://forum.syncthing.net/t/how-change-block-size/10522 "2017-09-08T13:20:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Craed](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/c/85e7bf/32.png) [@Craed](https://forum.syncthing.net/u/Craed)
#### Post date: [September 8, 2017, 1:20pm UTC](https://forum.syncthing.net/t/how-change-block-size/10522/1 "2017-09-08T13:20:41Z")

</div>

Hi, I read this document : [https://github.com/syncthing/syncthing/wiki/Variable-Block-Size](https://github.com/syncthing/syncthing/wiki/Variable-Block-Size) but I don’t understand how change it. I need to synch enormous file (2 TB) but 128kb block size are really few. Thanks!

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [September 8, 2017, 1:23pm UTC](https://forum.syncthing.net/t/how-change-block-size/10522/2 "2017-09-08T13:23:38Z")

</div>

That’s a non implemented proposal. The block size is currently fixed. You can change the constant in protocol.go and rebuild, but I wouldn’t necessarily recommend it.

---

<div class="post-metadata">

### Author: ![Craed](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/c/85e7bf/32.png) [@Craed](https://forum.syncthing.net/u/Craed)
#### Post date: [September 8, 2017, 1:27pm UTC](https://forum.syncthing.net/t/how-change-block-size/10522/3 "2017-09-08T13:27:02Z")

</div>

ok, only to know, where i find this file protocol.go? and how i rebuild? Thanks

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [September 8, 2017, 1:29pm UTC](https://forum.syncthing.net/t/how-change-block-size/10522/4 "2017-09-08T13:29:33Z")

</div>

Here:

- [https://github.com/syncthing/syncthing/blob/master/lib/protocol/protocol.go#L20](https://github.com/syncthing/syncthing/blob/master/lib/protocol/protocol.go#L20)
- [https://docs.syncthing.net/dev/building.html](https://docs.syncthing.net/dev/building.html)

One of the reasons I would not recommend it is that Syncthing with a different blocksize is a fundamentally different software compared to standard Syncthing. It’s not protocol compatible, the database format is different, and we can’t support it.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [October 8, 2017, 1:38pm UTC](https://forum.syncthing.net/t/how-change-block-size/10522/5 "2017-10-08T13:38:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
