Re: [Tails-dev] [review'n'merge] #7166: bugfix/7166-vagrant-…

Nachricht löschen

Nachricht beantworten
Autor: Kill Your TV
Datum:  
To: The Tails public development discussion list
Betreff: Re: [Tails-dev] [review'n'merge] #7166: bugfix/7166-vagrant-memory-checks
On Tue, 6 May 2014 16:44:09 +0000 (UTC)
anonym <anonym@???> wrote:

> Hi,
>
> Please review and merge the branch bugfix/7166-vagrant-memory-checks
> into the devel branch, which fixes #7166 [1]. I've optimistically
> assigned the ticket to Kill Your TV since s/he did the previous
> testing. This time, a successful test means that you can build Tails
> in RAM like this, which should result in a non-RAM build without this
> branch:
>
> 1. Make sure you have >= 8 GiBs of free RAM.
>
> 2. Start the Vagrant VM:
>
>        rake vm:up

>
> 3. Make sure the VM was started with ~7 GiBs of total RAM:
>
>        (cd vagrant/ ; vagrant ssh -c "free -m")


$ vagrant ssh -c "free -m"
             total       used       free     shared    buffers
cached Mem:          6995         94       6901          0
26         19 -/+ buffers/cache:         48       6947
Swap:          447          0        447
Connection to 127.0.0.1 closed.



>
> 4. Then fill your *hosts* RAM somehow so it has less than 7 GiBs of
>    free RAM (to be sure, feel free to almost completely fill the
>    host's RAM).

>


`memtester 8G` FTW :)


> 5. Start a build, which should auto-detect that enough RAM is there
>    for a RAM build, and hence enable it:

>
>        rake build

>
> 6. Wait until the wiki has been built, and live-build starts to
> actually building Tails, i.e. after the shell outputs something like
>
>        Building iso image tails-i386-[...]

>
>    then verify that a large size=100% tmpfs been mounted
>    as /tmp/tmpfs.*, which implies that we're building in RAM:

>
>       (cd vagrant/ ; vagrant ssh -c "mount")


Looks good AFAICT. :)

vagrant@squeeze:~$ df -h -t tmpfs
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 3.5G     0  3.5G   0% /lib/init/rw
udev                  3.5G  112K  3.5G   1% /dev
tmpfs                 3.5G     0  3.5G   0% /dev/shm
tmpfs                 6.5G   60M  6.5G   1% /tmp/tmpfs.Cpwm4zQT
vagrant@squeeze:~$ mount -t tmpfs
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /tmp/tmpfs.Cpwm4zQT type tmpfs
(rw,noatime,size=6979321856,mode=0770,uid=0,gid=1000)



I updated the ticket with pretty much the same text as here.