bradh352 commented on PR #11932:
URL: https://github.com/apache/cloudstack/pull/11932#issuecomment-3607149640

   Well, honestly the first test was enough to convince me it is working well:
   
   
   Fresh VM (wihtin VM):
   ```
   root@test1:~# free
                  total        used        free      shared  buff/cache   
available
   Mem:        16369284      617328    15567232       11004      474740    
15751956
   Swap:              0           0           0
   ```
   
   In Hypervisor:
   ```
   root@node1:~# ps -o pid,rss,vsz,command -p 1417359
       PID   RSS    VSZ COMMAND
   1417359 1408680 19634724 /usr/bin/qemu-system-x86_64 -name 
guest=i-2-304-VM,...
   ```
   
   In VM, allocate a tmpfs mount and a large file:
   ```
   root@test1:~# mount -t tmpfs tmpfs /mnt
   root@test1:~# dd if=/dev/zero of=/mnt/bigfile bs=1M count=10000
   dd: error writing '/mnt/bigfile': No space left on device
   7993+0 records in
   7992+0 records out
   8381071360 bytes (8.4 GB, 7.8 GiB) copied, 3.95783 s, 2.1 GB/s
   root@test1:~# free
                  total        used        free      shared  buff/cache   
available
   Mem:        16369284     8805920     7369168     8195644     8678156     
7563364
   Swap:              0           0           0
   ```
   
   In Hypervisor:
   ```
   root@node1:~# ps -o pid,rss,vsz,command -p 1417359
       PID   RSS    VSZ COMMAND
   1417359 9782676 19615192 /usr/bin/qemu-system-x86_64 -name 
guest=i-2-304-VM,...
   ```
   
   Cleanup:
   ```
   root@test1:~# rm -f /mnt/bigfile && umount /mnt
   root@test1:~# free
                  total        used        free      shared  buff/cache   
available
   Mem:        16369284      599236    15467600       11004      594464    
15770048
   Swap:              0           0           0
   ```
   
   In Hypervisor:
   ```
   root@node1:~# ps -o pid,rss,vsz,command -p 1417359
       PID   RSS    VSZ COMMAND
   1417359 1523988 19610052 /usr/bin/qemu-system-x86_64 -name 
guest=i-2-304-VM,...
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to