# Memory storage on Gitlab repository - Pavlovia

**URL:** <https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314>\
**Category:** Online experiments\
**Created:** [March 4, 2020, 8:56am UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314 "2020-03-04T08:56:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![pruggeri](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@pruggeri](https://discourse.psychopy.org/u/pruggeri)\
**Post date:** [March 4, 2020, 8:56am UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/1 "2020-03-04T08:56:37Z")

</div>

Dear all,

I was just wandering whether there is a max limit in storage size for the dataset recorded through online experiments. I am saving results in .csv format. According to the dataset size that I will record, I expect to have ~2’300 MB of data by the end of the experiment.

Is there enough space for this dataset size? or there is the risk that the data won’t be saved anymore on the server due to limits in the max storage size ?

Sorry for the naive question, and many thanks for your help!  
P.

---

<div class="post-metadata">

**Author:** ![pruggeri](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@pruggeri](https://discourse.psychopy.org/u/pruggeri)\
**Post date:** [March 10, 2020, 7:53am UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/2 "2020-03-10T07:53:21Z")

</div>

Dear All,

Does anyone has an idea about that? Many thanks for your help 🙂 @dvbridges @jon

Pool

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [March 10, 2020, 1:44pm UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/3 "2020-03-10T13:44:49Z")

</div>

We haven’t manually inserted any limits ourselves at this point. Do you mean 2.3GB (sorry I’m not sure about the ’ notation you’ve used)? I’m wondering what would cause such large files. What are you saving into these? Or are the files relatively small but you’re expecting thousands of participants?

---

<div class="post-metadata">

**Author:** ![pruggeri](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@pruggeri](https://discourse.psychopy.org/u/pruggeri)\
**Post date:** [March 10, 2020, 3:35pm UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/4 "2020-03-10T15:35:38Z")

</div>

Many thanks for your reply!

Yes, I mean 2.3 GB, sorry about that. You are right: We have a longitudinal study, each participant (30 in total) is expected to complete 30 experimental sessions, for a total of 900 sessions. Each session produces ~ 2.7 MB of data (log + csv). That’s why the final dataset will be quite large.

I guess there won’t be any issues with our study since there are not data storage limits?

Many thanks again for your reply!

Paolo

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [March 12, 2020, 10:40am UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/5 "2020-03-12T10:40:45Z")

</div>

It’s something we’ll have to monitor for excessive usage, but for now there is no limit to prevent this

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [March 12, 2020, 10:41am UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/6 "2020-03-12T10:41:22Z")

</div>

2.7Mb is a huge data file for one session though, since these are raw text. What are you saving in the file?

---

<div class="post-metadata">

**Author:** ![pruggeri](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@pruggeri](https://discourse.psychopy.org/u/pruggeri)\
**Post date:** [March 12, 2020, 11:06am UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/7 "2020-03-12T11:06:27Z")

</div>

Many thanks for your reply.

Each session produces a CSV that is actually quite small (457 KB), and a .log file that is actually 1.9 MB. The problem I would say is the log file

Is there a way to avoid saving the .log file?

Cheers,  
Paolo

---

<div class="post-metadata">

**Author:** ![pruggeri](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@pruggeri](https://discourse.psychopy.org/u/pruggeri)\
**Post date:** [March 12, 2020, 11:07am UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/8 "2020-03-12T11:07:04Z")

</div>

I can provide both if you wish to have a look at it, no problem at all.

Paolo

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [March 12, 2020, 12:08pm UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/9 "2020-03-12T12:08:18Z")

</div>

Oh. Interesting. That might be something we can make smaller at our end if you could send one (or just a link) that might be handy

---

<div class="post-metadata">

**Author:** ![pruggeri](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@pruggeri](https://discourse.psychopy.org/u/pruggeri)\
**Post date:** [March 12, 2020, 4:35pm UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/10 "2020-03-12T16:35:27Z")

</div>

Sure, with pleasure ;).

The log file can be downloaded from this link:

> **[SWITCHdrive -](https://drive.switch.ch/index.php/s/K5yQTqGT8nqGxIr)**
>
> UZZAF\_DSP\_WEB\_final\_2020-03-12\_12h26.58.619.log is publicly shared

Cheers

---

<div class="post-metadata">

**Author:** ![kimSpeck](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/kimspeck/32/10151_2.png) [@kimSpeck](https://discourse.psychopy.org/u/kimSpeck)\
**Post date:** [August 17, 2020, 5:35pm UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/11 "2020-08-17T17:35:33Z")

</div>

Speaking of the size of log files …  
I’m currently trying to implement a task in pavlovia that used to run as a PsychoPy Coder experiment in the lab.  
The stimuli are pretty complex. There are 409 elements (predominantly of the type polygon) on average on the screen in each trial. Since every single element is logged, the log file accumulates to a size of up to 300 MB (with approximately 2 million lines).

Is there an option to switch off the log file or change the logging level in an online experiment?  
Might the accumulation of such a huge amount of plain text cause a visible increase of RAM usage over time as well?

Any help is appreciated and thanks in advance!  
Kim

---

<div class="post-metadata">

**Author:** ![laucap](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/laucap/32/8562_2.png) [@laucap](https://discourse.psychopy.org/u/laucap)\
**Post date:** [October 15, 2020, 4:01pm UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/12 "2020-10-15T16:01:30Z")

</div>

I would also like to know if there are ways to avoid saving the log files on Pavlovia! Thank you!

---

<div class="post-metadata">

**Author:** ![kimSpeck](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/kimspeck/32/10151_2.png) [@kimSpeck](https://discourse.psychopy.org/u/kimSpeck)\
**Post date:** [October 26, 2020, 10:29am UTC](https://discourse.psychopy.org/t/memory-storage-on-gitlab-repository-pavlovia/11314/13 "2020-10-26T10:29:53Z")

</div>

I managed to “turn off” the log files by commenting out certain lines of code in the core lib-file.  
I’m not sure whether that alteration of the code leads to any side effects. In my task, I didn’t notice any.

When I ran the online experiment with the altered file, no log file was generated/saved and according to the DOM-inspector of my browser there seemed to be less storage spent on strings (I’m no expert but to me it seemed reasonable to be related to the alterations).

It did not resolve all of my issues, but depending on what you’re trying to achieve it might work for you.

I used an altered version of the script provided by @benwang (see topic below) to update the relevant files after every sync with pavlovia.

> [@PsychoJS platform version 2020.1 - Memory Leak in Visual Stimulus Setters](https://discourse.psychopy.org/t/psychojs-platform-version-2020-1-memory-leak-in-visual-stimulus-setters/14571/6):
>
> Hey Frank, Thanks a lot for providing this fix! I’ve updated my experiment with your bug\_fix lib and updated the import statements in my experiment’s main .js file; this has minimized crashing/freezing resulting from this memory leak for most participants. That said, correct me if I’m wrong, but the fix doesn’t seem to apply to the .js file used for older browsers. Do you happen to know of an alternative solution for older browsers? Memory leakage via text components is the main issue in my exp…

In the altered version of the core-file (core-2020.2.js) I commented out line 527, 531, 539 - 544 (class Logger code chunk)

```js
    exp(msg, time, obj)
	{
		//this.log(msg, Logger.ServerLevel.EXP, time, obj);
	}
	data(msg, time, obj)
	{
		//this.log(msg, Logger.ServerLevel.DATA, time, obj);
	}
	log(msg, level, time, obj)
	{
		if (typeof time === 'undefined')
		{
			time = MonotonicClock.getReferenceTime();
		}
		/*this._serverLogs.push({
			msg,
			level,
			time,
			obj: toString(obj)
		}); */
	 }

```

and line 806 (class Window extends PsychObject code chunk).

```js
logOnFlip({
							msg,
							level = Logger.ServerLevel.EXP,
							obj
						} = {})
	{
		//this._msgToBeLogged.push({msg, level, obj});
	}

```

You can find the original lib file version corresponding to your prefered PsychoPy release by changing this link: [https://lib.pavlovia.org/core-2020.2.js](https://lib.pavlovia.org/core-2020.2.js)
