#Hey! Would anyone have a hint on how to
1 messages ยท Page 1 of 1 (latest)
So far, creating pipelines that write random files into a container or generate random content does not translate into big increments of cache size...
I guess a for loop that executes dd could get the job done pretty quickly ๐
if you write a single file with just a small random string, followed by GBs of zeroes, I guess that will go straight in the cache
Uhms... Thanks, I guess ๐ค
func (m *CacheFiller) Fill(ctx context.Context) (string, error) {
return dag.Container().
From("alpine:latest").
WithExec([]string{"dd","if=/dev/urandom","of=/tmp/test1","bs=1M","count=10240"}).
WithExec([]string{"ls","-lh","/tmp/"}).
Stdout(ctx)
}
Increases the /var/lib/dagger by 10Gb
but
``` never increases in size.
Does that still mean the cache increased by 10Gb? ๐
I think /tmp is mounted as tmfps in the containers which gets discarded aftear each execution. Try creating the file in a different directory
still same result (writting on /)
Interestingly enough, the volume keeps growing at 10Gb chunks ๐