Hi, Sean Cribbs ,Thank you. You are right. I have a little puzzle. If there are 
large of  <K-V>,   a lot of blocks will be consumed.
I only put a aiml file element  put into ria,28M of the filesystem will be 
consumed.
from jasonof the filesystem will be consumed




jason@localhost:/media/a619c70d-014a-4245-88d9-9e667b0f343a/home/jason/sofriak/riak/rel/riak/data/bitcask$
 du -ha
4.0K./1438665674247607560106752257205091097473808596992/1323224499.bitcask.hint
4.0K./1438665674247607560106752257205091097473808596992/1323224499.bitcask.data
4.0K./1438665674247607560106752257205091097473808596992/bitcask.write.lock
16K./1438665674247607560106752257205091097473808596992
4.0K./1392993748081016843912887106182707253109560705024/1323224499.bitcask.hint
4.0K./1392993748081016843912887106182707253109560705024/1323224499.bitcask.data
4.0K./1392993748081016843912887106182707253109560705024/bitcask.write.lock
16K./1392993748081016843912887106182707253109560705024
4.0K./1415829711164312202009819681693899175291684651008/1323224499.bitcask.hint
4.0K./1415829711164312202009819681693899175291684651008/1323224499.bitcask.data
4.0K./1415829711164312202009819681693899175291684651008/bitcask.write.lock
16K./1415829711164312202009819681693899175291684651008
4.0K./1255977969581244695331291653115555720016817029120/1323225974.bitcask.data
4.0K./1255977969581244695331291653115555720016817029120/bitcask.write.lock
4.0K./1255977969581244695331291653115555720016817029120/1323225974.bitcask.hint
16K./1255977969581244695331291653115555720016817029120
4.0K./1301649895747835411525156804137939564381064921088/1323225974.bitcask.data
4.0K./1301649895747835411525156804137939564381064921088/bitcask.write.lock
4.0K./1301649895747835411525156804137939564381064921088/1323225974.bitcask.hint
16K./1301649895747835411525156804137939564381064921088
4.0K./1278813932664540053428224228626747642198940975104/1323225974.bitcask.data
4.0K./1278813932664540053428224228626747642198940975104/bitcask.write.lock
4.0K./1278813932664540053428224228626747642198940975104/1323225974.bitcask.hint
16K./1278813932664540053428224228626747642198940975104
100K.

在2011-12-06,"Sean Cribbs" <[email protected]> 写道: -----原始邮件-----
发件人:"Sean Cribbs" <[email protected]>
发送时间:2011年12月6日 星期二
收件人:"郎咸武" <[email protected]>
抄送:[email protected]
主题:Re: About Riak a <K-V> using 50K at least?

Note that your filesystem uses 4KB blocks, so even if there are 0 bytes in a 
file, 4KB of the filesystem will be consumed. Look at the usage of individual 
files in the directories you mentioned and I think you will find them small, 
perhaps some of them 0 in length.


2011/12/6 郎咸武<[email protected]>


Hi all,I install riak with make rel in my ubuntu.
I found a K-V consume 50K when i put a <"mine","bread"> to the riak. But, i am 
not sure. Please tell me the reason. Thank you.


from jason


about list.
O0 = riak_object:new(<<"groceries">>, <<"mine">>, ["bread"]).
C:put(Oo);
du -h bitcask
16K     bitcask/1438665674247607560106752257205091097473808596992
16K     bitcask/1392993748081016843912887106182707253109560705024
16K     bitcask/1415829711164312202009819681693899175291684651008
52K     bitcask


O3 = riak_object:new(<<"groceries">>, <<"mines">>, ["bread"]).
 C:put(O3)



jason@localhost:/media/a619c70d-014a-4245-88d9-9e667b0f343a/home/jason/sofriak/riak/rel/riak/data$
 du -h bitcask
16K     bitcask/1438665674247607560106752257205091097473808596992
16K     bitcask/1392993748081016843912887106182707253109560705024
16K     bitcask/1415829711164312202009819681693899175291684651008
16K     bitcask/1255977969581244695331291653115555720016817029120
16K     bitcask/1301649895747835411525156804137939564381064921088
16K     bitcask/1278813932664540053428224228626747642198940975104
100K    bitcask






_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com







--
Sean Cribbs <[email protected]>
Developer Advocate
Basho Technologies, Inc.
http://www.basho.com/

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to