# How to manage disk space for Gromacs XTC (trajectory) file output

**URL:** https://gromacs.bioexcel.eu/t/how-to-manage-disk-space-for-gromacs-xtc-trajectory-file-output/3452
**Category:** User discussions
**Tags:** mdp-parameters, mdrun
**Created:** [January 10, 2022, 9:05am UTC](https://gromacs.bioexcel.eu/t/how-to-manage-disk-space-for-gromacs-xtc-trajectory-file-output/3452 "2022-01-10T09:05:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gundalav](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@gundalav](https://gromacs.bioexcel.eu/u/gundalav)
#### Post date: [January 10, 2022, 9:05am UTC](https://gromacs.bioexcel.eu/t/how-to-manage-disk-space-for-gromacs-xtc-trajectory-file-output/3452/1 "2022-01-10T09:05:16Z")

</div>

I’m running and MD run with Gromacs.  
Typically with this command:

```
gmx mdrun -v -deffnm md

```

It also produces trajectory file with `.xtc` extension.  
Typically this file is extremely large, e.g. 143Gb for 1ns simulation and 143Tb for 10ns simulation.

My questions are:

1. Is there an option in `gmx mdrun` to specify where to write the `.xtc` file?  
For example I want to specify specific directory path with large disk space.
2. Is there away to shrink the size of `.xtc` file?

---

<div class="post-metadata">

### Author: ![scinikhil](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/scinikhil/32/3483_2.png) [@scinikhil](https://gromacs.bioexcel.eu/u/scinikhil)
#### Post date: [January 10, 2022, 9:51am UTC](https://gromacs.bioexcel.eu/t/how-to-manage-disk-space-for-gromacs-xtc-trajectory-file-output/3452/2 "2022-01-10T09:51:04Z")

</div>

what is the interval freqency you saving the file? and what is the total size of the simulation system? 143 GB for 1ns seems huge.

See the output control in MDP setting

[https://manual.gromacs.org/documentation/current/user-guide/mdp-options.html](https://manual.gromacs.org/documentation/current/user-guide/mdp-options.html)

---

<div class="post-metadata">

### Author: ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)
#### Post date: [January 10, 2022, 1:47pm UTC](https://gromacs.bioexcel.eu/t/how-to-manage-disk-space-for-gromacs-xtc-trajectory-file-output/3452/3 "2022-01-10T13:47:22Z")

</div>

> [@gundalav](#):
>
> Typically this file is extremely large, e.g. 143Gb for 1ns simulation and 143Tb for 10ns simulation.

I don’t think I’ve generated 143 TB of data in my entire career, let alone for a single 10-ns simulation. You’re probably saving far too frequently for a very large system, but without more details of what you’re doing, there’s nothing specific we can suggest to help.
