[SP-pm] Criar diretório virtual
Stanislaw Pusep
creaktive at gmail.com
Wed Mar 16 14:04:02 PDT 2011
Exatamente, ele aproveita o espaço do cache :)
stas em DNDSPODSK041:/dev/shm$ free -m
total used free shared buffers cached
Mem: 1948 1216 731 0 3 131
-/+ buffers/cache: 1081 866
Swap: 4000 0 4000
stas em DNDSPODSK041:/dev/shm$ dd if=/dev/zero of=teste bs=1M count=500
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 1.20061 s, 437 MB/s *<=== NICE!!!*
stas em DNDSPODSK041:/dev/shm$ free -m
total used free shared buffers cached
Mem: 1948 1717 230 0 4 631
-/+ buffers/cache: 1081 866
Swap: 4000 0 4000
stas em DNDSPODSK041:/dev/shm$ rm teste
stas em DNDSPODSK041:/dev/shm$ free -m
total used free shared buffers cached
Mem: 1948 1217 730 0 4 131
-/+ buffers/cache: 1081 866
Swap: 4000 0 4000
stas em DNDSPODSK041:/dev/shm$
Aliás, fugindo do escopo, uma coisa bem legal que descobri esses dias, o
equivalente Linux do "prune" do Mac OS X:
# echo 3 > /proc/sys/vm/drop_caches
ABS()
2011/3/16 Renato Santos <renato.cron em gmail.com>
> Stain,
>
> Fiz um DF no ubuntu e achei a linha:
> none 2.0G 7.3M 2.0G 1% /dev/shm
>
>
> Então eu posso usar até 2GB?! Uia, se eu criar um arquivo de 400mb e apagar
> eu ganho os 400mb de novo? que legal!
>
> 2011/3/16 Andre Carneiro <andregarciacarneiro em gmail.com>
>
>> Ia mostrar a mesma coisa, mas o Eden é um monger mais rápido...
>>
>>
>>
>> Em 16 de março de 2011 17:23, Daniel de Oliveira Mantovani <
>> daniel.oliveira.mantovani em gmail.com> escreveu:
>>
>> O Eden Cardim me disse através do IRC que isso chama "ramdisk", então
>>> eu consegui me virar.
>>> http://www.vanemery.com/Linux/Ramdisk/ramdisk.html
>>>
>>> []'s
>>>
>>> 2011/3/16 Daniel de Oliveira Mantovani <
>>> daniel.oliveira.mantovani em gmail.com>:
>>> > Pessoal, eu estou com a idéia de pegar um diretório já existente:
>>> > /home/foo/text/
>>> > pegar todo o conteúdo e jogar para a memória. Após isso, eu quero
>>> > criar um diretório virtual:
>>> > /home/foo/virtual/text/
>>> > Com todo o conteúdo direto da memória, ou seja qualquer coisa que for
>>> > chamar o que estiver dentro do ~/virtual/text "não fará operação de
>>> > I/O", pois tudo já estará na memória.
>>> >
>>> >
>>> >
>>> > --
>>> > "If you’ve never written anything thoughtful, then you’ve never had
>>> > any difficult, important, or interesting thoughts. That’s the secret:
>>> > people who don’t write, are people who don’t think."
>>> >
>>>
>>>
>>>
>>> --
>>> "If you’ve never written anything thoughtful, then you’ve never had
>>> any difficult, important, or interesting thoughts. That’s the secret:
>>> people who don’t write, are people who don’t think."
>>> =begin disclaimer
>>> Sao Paulo Perl Mongers: http://sao-paulo.pm.org/
>>> SaoPaulo-pm mailing list: SaoPaulo-pm em pm.org
>>> L<http://mail.pm.org/mailman/listinfo/saopaulo-pm>
>>> =end disclaimer
>>>
>>
>>
>>
>> --
>> André Garcia Carneiro
>> Analista/Desenvolvedor Perl
>> (11)82907780
>>
>> =begin disclaimer
>> Sao Paulo Perl Mongers: http://sao-paulo.pm.org/
>> SaoPaulo-pm mailing list: SaoPaulo-pm em pm.org
>> L<http://mail.pm.org/mailman/listinfo/saopaulo-pm>
>> =end disclaimer
>>
>>
>
>
> --
> Renato Santos
> http://www.renatocron.com/blog/
>
> =begin disclaimer
> Sao Paulo Perl Mongers: http://sao-paulo.pm.org/
> SaoPaulo-pm mailing list: SaoPaulo-pm em pm.org
> L<http://mail.pm.org/mailman/listinfo/saopaulo-pm>
> =end disclaimer
>
>
-------------- Pr�xima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/saopaulo-pm/attachments/20110316/b0abe41c/attachment.html>
More information about the SaoPaulo-pm
mailing list