#Hey! Would anyone have a hint on how to

1 messages ยท Page 1 of 1 (latest)

hollow oracle
#

So far, creating pipelines that write random files into a container or generate random content does not translate into big increments of cache size...

shy locust
#

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

hollow oracle
#

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? ๐Ÿ˜…
kindred nest
hollow oracle
#

still same result (writting on /)
Interestingly enough, the volume keeps growing at 10Gb chunks ๐Ÿ˜