Advertisement
JPeterson

triplie read/write footprint

Aug 29th, 2012
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.08 KB | None | 0 0
  1. # is it possible to read triplie.db to RAM? considering the read/write to it?
  2. rm botdata/triplie.db; make bootstrap
  3. wget -N http://www.gutenberg.org/cache/epub/11/pg11.txt; ./feed_text.sh pg11.txt
  4. du -h botdata/triplie.db
  5. 3.1M    botdata/triplie.db
  6. ./triplie
  7. 4280 words, 34190 relations, 135938 associations in database.
  8. ifconfig eth0|grep 'RX bytes'
  9. RX bytes:833499384 (833.4 MB)  TX bytes:665681189 (665.6 MB)
  10. 02:19 <@user> triplie: have you seen a white rabbit with pink eyes?
  11. 02:23 -!- triplie [~triplie@localhost] has quit [Ping timeout]
  12. ifconfig eth0|grep 'RX bytes'
  13. RX bytes:2220422158 (2.2 GB)  TX bytes:1093689231 (1.0 GB)
  14. mount -tnfs
  15. 192.168.0.100:/shared on /mnt/nfs type nfs (rw,sync,noac,timeo=7,addr=192.168.0.100)
  16. # workaround
  17. sudo mkdir -p /mnt/ram; sudo chmod a+w /mnt/ram; sudo mount -tramfs -oremount,size=10m ramfs /mnt/ram; cp botdata/triplie.db /mnt/ram
  18. ./triplie -d /mnt/ram/triplie.db
  19. 06:49 <@user> triplie: have you seen a white rabbit with pink eyes?
  20. 06:49 < triplie> user: at her, and she went on : '--that begins with an m? ' said the white rabbit hurried by--the
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement