# Why insync write so much in my SSD?

**URL:** <https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289>\
**Category:** Miscellaneous\
**Created:** [October 3, 2016, 4:24am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289 "2016-10-03T04:24:41Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romulo\_Benedetti](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@Romulo\_Benedetti](https://forums.insynchq.com/u/Romulo_Benedetti)\
**Post date:** [October 3, 2016, 4:24am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/1 "2016-10-03T04:24:41Z")

</div>

I was getting a hard time figuring why my SSD is being “abused” and I figured the majority is insync updating database, but I don’t know why as there is no data being changed in the path… I started analyzing results with ksyslog:

 ![](https://forums.insynchq.com/uploads/default/original/2X/1/1053ec552a84f6679769c2b1737501b6d017e40d.png)

And so I logged the access with fatrace and is pretty abusive, ~2 minutes produced a near 4MB where insync dominates write operations, can’t it be reduced?

**update:**

This appear to be a quite ephemeral file to be in /var/tmp, a directory that should not be ram mounted as it is intended for files that live after reboot:

…  
01:50:49.532206 insync(2568): W /var/tmp/etilqs\_cwXDXJzU56oTcqM (deleted)  
01:50:49.532248 insync(2568): W /var/tmp/etilqs\_cwXDXJzU56oTcqM (deleted)  
01:50:49.532261 insync(2568): W /var/tmp/etilqs\_cwXDXJzU56oTcqM (deleted)  
01:50:49.532274 insync(2568): W /var/tmp/etilqs\_cwXDXJzU56oTcqM (deleted)  
01:50:49.532287 insync(2568): W /var/tmp/etilqs\_cwXDXJzU56oTcqM (deleted)  
01:50:49.532299 insync(2568): W /var/tmp/etilqs\_cwXDXJzU56oTcqM (deleted)  
01:50:49.532311 insync(2568): W /var/tmp/etilqs\_cwXDXJzU56oTcqM (deleted)  
01:50:49.532323 insync(2568): W /var/tmp/etilqs\_cwXDXJzU56oTcqM (deleted)  
01:50:49.532335 insync(2568): W /var/tmp/etilqs\_cwXDXJzU56oTcqM (deleted)  
01:50:49.532381 insync(2568): W /var/tmp/etilqs\_cwXDXJzU56oTcqM (deleted)  
…

Should it not be more appropriated to use /tmp ? It is safer to users to mount it in RAM for example.

---

<div class="post-metadata">

**Author:** ![jaduenas](https://forums.insynchq.com/user_avatar/forums.insynchq.com/jaduenas/32/5664_2.png) [@jaduenas](https://forums.insynchq.com/u/jaduenas)\
**Post date:** [October 3, 2016, 6:56am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/2 "2016-10-03T06:56:38Z")

</div>

tagging our engineers @dipesh @lpugoy @jimperio and they will get back to you.

---

<div class="post-metadata">

**Author:** ![lpugoy](https://forums.insynchq.com/user_avatar/forums.insynchq.com/lpugoy/32/42_2.png) [@lpugoy](https://forums.insynchq.com/u/lpugoy)\
**Post date:** [October 3, 2016, 9:30am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/3 "2016-10-03T09:30:34Z")

</div>

@Romulo_Benedetti: Thanks for the report, I’ll take a look at it. Was Insync syncing files during this period?

---

<div class="post-metadata">

**Author:** ![Romulo\_Benedetti](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@Romulo\_Benedetti](https://forums.insynchq.com/u/Romulo_Benedetti)\
**Post date:** [October 3, 2016, 6:14pm UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/4 "2016-10-03T18:14:23Z")

</div>

there is months I did not change my google drive data.

When it first start it massively write without syncing:

 ![](https://forums.insynchq.com/uploads/default/original/2X/4/4834516cfe629fe78accebd3368c11a86e33495d.png)

it takes 1min+ doing this

and so it frequently do something from time to time, doing spikes

---

<div class="post-metadata">

**Author:** ![lpugoy](https://forums.insynchq.com/user_avatar/forums.insynchq.com/lpugoy/32/42_2.png) [@lpugoy](https://forums.insynchq.com/u/lpugoy)\
**Post date:** [October 4, 2016, 2:52am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/5 "2016-10-04T02:52:33Z")

</div>

@Romulo_Benedetti: I see. Have you encountered it with older versions? Do you have a lot of files in your account, around 10,000? Does it only happen when Insync is starting up, or does it happen continuously while Insync is running?

---

<div class="post-metadata">

**Author:** ![Sushubh](https://forums.insynchq.com/user_avatar/forums.insynchq.com/sushubh/32/1632_2.png) [@Sushubh](https://forums.insynchq.com/u/Sushubh)\
**Post date:** [October 4, 2016, 3:34am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/6 "2016-10-04T03:34:33Z")

</div>

I have a lot of files on my Drive account and Insync takes a long time before syncing begins. It’s expected though as I imagine the app would check through all the folders to see changed/new/deleted files so that they can be synced. The app has no way of knowing about changes made when the app was not running so this is going to happen. So for the first few minutes after starting the app, the hard disk is accessed like crazy.

---

<div class="post-metadata">

**Author:** ![Romulo\_Benedetti](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@Romulo\_Benedetti](https://forums.insynchq.com/u/Romulo_Benedetti)\
**Post date:** [October 4, 2016, 12:29pm UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/7 "2016-10-04T12:29:54Z")

</div>

Please pay attention to my post and images, I’m concerned about **write access** …

---

<div class="post-metadata">

**Author:** ![Romulo\_Benedetti](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@Romulo\_Benedetti](https://forums.insynchq.com/u/Romulo_Benedetti)\
**Post date:** [October 4, 2016, 12:38pm UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/8 "2016-10-04T12:38:39Z")

</div>

Thanks for the attention, a lot more, 114,000.  
The intense write that I stated at last, yes, has 2 or 3 minutes of duration after insync is started, I logged write accesses with **fatrace** and can confirm they are InSync access. Small writes as I stated first, occurs frequently.

My preoccupation is that I have practically nothing shared, and what is shared is not edited so I don’t get why InSync need to change so much the database over time.

---

<div class="post-metadata">

**Author:** ![Mike\_Kucerik](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/m/aca169/32.png) [@Mike\_Kucerik](https://forums.insynchq.com/u/Mike_Kucerik)\
**Post date:** [October 4, 2016, 7:37pm UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/9 "2016-10-04T19:37:35Z")

</div>

The heavy (very heavy) disk access when Insync starts is my only grief with the software. Insync’s data folder is on my programs/boot drive and kills my system’s performance for the almost two hours of startup comparisons. Would really like the option to place the data file on a secondary drive to free up the load on my primary.

---

<div class="post-metadata">

**Author:** ![Romulo\_Benedetti](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@Romulo\_Benedetti](https://forums.insynchq.com/u/Romulo_Benedetti)\
**Post date:** [October 4, 2016, 7:58pm UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/10 "2016-10-04T19:58:34Z")

</div>

I really would like that, if temporary files really are ephemeral, on Linux they have to be stored in /tmp, unless you really need it to survive reboot.

I’m not sure, but it appear it is **rebuilding the entire database in my case** , every restart of the program, this is more serious in my view, as it represents 1.5 GB in my case.

I’m planning to sync all my FS on near future if viable.

---

<div class="post-metadata">

**Author:** ![lpugoy](https://forums.insynchq.com/user_avatar/forums.insynchq.com/lpugoy/32/42_2.png) [@lpugoy](https://forums.insynchq.com/u/lpugoy)\
**Post date:** [October 5, 2016, 10:08am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/11 "2016-10-05T10:08:02Z")

</div>

@Mike_Kucerik: You might want to try moving the folder `~/.config/Insync` to your secondary drive and add a symlink to it in its original location.

@Romulo_Benedetti: I’m still taking a look at your issue but just a note regarding syncing your whole FS. That is not supported for now as it might cause issues with files that Insync cannot modify and with symlink cycles, among others.

---

<div class="post-metadata">

**Author:** ![Romulo\_Benedetti](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@Romulo\_Benedetti](https://forums.insynchq.com/u/Romulo_Benedetti)\
**Post date:** [October 6, 2016, 12:39am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/12 "2016-10-06T00:39:41Z")

</div>

Ok thanks, at the moment I’m not using InSync to avoid SSD abuse and huge differentials on file system snapshots.

---

<div class="post-metadata">

**Author:** ![Ludovic\_GIAMBIASI](https://forums.insynchq.com/user_avatar/forums.insynchq.com/ludovic_giambiasi/32/3091_2.png) [@Ludovic\_GIAMBIASI](https://forums.insynchq.com/u/Ludovic_GIAMBIASI)\
**Post date:** [October 6, 2016, 9:04am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/13 "2016-10-06T09:04:35Z")

</div>

Hi, same for me !! when starting my computer, it takes very long time… (same on 2 ubuntu computers)

---

<div class="post-metadata">

**Author:** ![Ludovic\_GIAMBIASI](https://forums.insynchq.com/user_avatar/forums.insynchq.com/ludovic_giambiasi/32/3091_2.png) [@Ludovic\_GIAMBIASI](https://forums.insynchq.com/u/Ludovic_GIAMBIASI)\
**Post date:** [October 6, 2016, 9:06am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/14 "2016-10-06T09:06:36Z")

</div>

yes, it’s rebuilding the entire database in my case… about **115Go** in my case !!

---

<div class="post-metadata">

**Author:** ![Romulo\_Benedetti](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@Romulo\_Benedetti](https://forums.insynchq.com/u/Romulo_Benedetti)\
**Post date:** [October 11, 2016, 10:12am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/15 "2016-10-11T10:12:26Z")

</div>

I’m just waiting when they will point us a version that did not behave like this, I simply can’t use it at the moment, it increased alone near 2 points in my wear leveling the last month I believe.

---

<div class="post-metadata">

**Author:** ![lpugoy](https://forums.insynchq.com/user_avatar/forums.insynchq.com/lpugoy/32/42_2.png) [@lpugoy](https://forums.insynchq.com/u/lpugoy)\
**Post date:** [October 17, 2016, 11:50am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/16 "2016-10-17T11:50:34Z")

</div>

@Romulo_Benedetti: Please try setting the `SQLITE_TMPDIR` environmental variable to `/tmp` before running Insync. This seems to work in my case.

---

<div class="post-metadata">

**Author:** ![Romulo\_Benedetti](https://forums.insynchq.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@Romulo\_Benedetti](https://forums.insynchq.com/u/Romulo_Benedetti)\
**Post date:** [October 19, 2016, 1:18pm UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/17 "2016-10-19T13:18:55Z")

</div>

I setted the environment and started insync from the same shell process, still it writes on /var/log. This variable apparently did not exist or is empty before I set it.

---

<div class="post-metadata">

**Author:** ![lpugoy](https://forums.insynchq.com/user_avatar/forums.insynchq.com/lpugoy/32/42_2.png) [@lpugoy](https://forums.insynchq.com/u/lpugoy)\
**Post date:** [October 20, 2016, 8:30am UTC](https://forums.insynchq.com/t/why-insync-write-so-much-in-my-ssd/7289/18 "2016-10-20T08:30:02Z")

</div>

@Romulo_Benedetti: Hmm, how did you set the environmental variable? What Linux distribution and version are you using, and what Insync version? Also please try setting the `TMPDIR` environmental variable as well.
