Да, сбрасывает.
Долго пишет.

root@danroot@dana:/home# free  ; dd if=/dev/zero of=test.dump bs=1024 
count=16353480 ; rm -f test.dump
             total       used       free     shared    buffers     cached
Mem:           19G       7,7G        11G       335M       666M       1,3G
-/+ buffers/cache:       5,8G        13G
Swap:          29G       352M        29G
16353480+0 записей получено
16353480+0 записей отправлено
 скопировано 16745963520 байт (17 GB), 181,822 c, 92,1 MB/c
удалён «test.dump»
root@dana:/home# free
             total       used       free     shared    buffers     cached
Mem:           19G       6,2G        13G       335M       4,0M       465M
-/+ buffers/cache:       5,7G        13G
Swap:          29G       350M        29G
a:/home# free  ; dd if=/dev/zero of=test.dump bs=1024 count=16353480 ; rm -f 
test.dump
             total       used       free     shared    buffers     cached
Mem:           19G       7,7G        11G       335M       666M       1,3G
-/+ buffers/cache:       5,8G        13G
Swap:          29G       352M        29G
16353480+0 записей получено
16353480+0 записей отправлено
 скопировано 16745963520 байт (17 GB), 181,822 c, 92,1 MB/c
удалён «test.dump»
root@dana:/home# free
             total       used       free     shared    buffers     cached
Mem:           19G       6,2G        13G       335M       4,0M       465M
-/+ buffers/cache:       5,7G        13G
Swap:          29G       350M        29G


On 29.07.2015 17:33, Tim Sattarov wrote:


On 2015-07-27 15:41, "Артём Н." wrote:
On 27.07.2015 21:38, Max Dmitrichenko wrote:
в последней колонке cached  8,8G

Ну, так подо что cached?


Попробуй вот так:


free  ; dd if=/dev/zero of=test.dump bs=1024 count=16353480 ; rm -f
test.dump; free


вот что выдает у меня (я немного модифицировал параметры, для удобства
отображения и заменил dd на  dcfldd)


~# free -h ; dcfldd if=/dev/zero of=test.dump bs=1024 count=16353480 ;
rm -f test.dump; free -h
               total        used        free      shared  buff/cache
available
Mem:            15G        1.0G        156M         40M
14G         14G
Swap:           15G          0B         15G
16353280 blocks (15970Mb) written.
16353480+0 records in
16353480+0 records out
               total        used        free      shared  buff/cache
available
Mem:            15G        1.0G         13G         40M
1.5G         14G
Swap:           15G          4K         15G


по сути ты создаешь файл размером с память и удаляешь его, это должно
сбросить буфер и освободить память.
Как видно выше у меня кэш сбросился с 14 до 1.5 гигабайта и свободная
память увеличилась с 156М до 13Г.

проверь сбрасываются ли буферы в твоем случае.





--
To UNSUBSCRIBE, email to debian-russian-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/55b90a8a.8090...@yandex.ru

Ответить