weed filer is slow

24 views
Skip to first unread message

lanrenwo

unread,
May 23, 2014, 4:17:50 AM5/23/14
to weed-fil...@googlegroups.com
Hi, ChrisLu, Weed-FS is Great, I tested is fast:
ab -n 10000 -c 100 http://192.168.1.1:8080/2/014a96ba83
> Requests per second:    6029.21 [#/sec] (mean)
I try use "weed filer", But tested is slow:
ab -n 10000 -c 100 http://192.168.1.1:8888/2014/05/23/1.jpg
> Requests per second:    1885.35 [#/sec] (mean)

Could you tell me why? Thank you very much.

Chris Lu

unread,
May 23, 2014, 4:33:32 AM5/23/14
to weed-fil...@googlegroups.com
Filer does extra work, to serve a filer request:
1) filer: lookup directory in memory, this should be very fast
2) filer: lookup file "1.jpg" via leveldb
3) filer: proxy the request to weed volume
4) Volume server returns data to filer
5) filer: give the data back to client

Just compare one single file performance is not really meaningful. Put lots and lots of files under one filer folder, and randomly access one of them. Filer can handle it with fairly consistent speed without much speed degradation. That's where the power of filer shines.

Chris

--
You received this message because you are subscribed to the Google Groups "Weed File System" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weed-file-syst...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lanrenwo

unread,
May 23, 2014, 4:46:50 AM5/23/14
to weed-fil...@googlegroups.com
I understand, thank you for your quick reply

在 2014年5月23日星期五UTC+8下午4时17分50秒,lanrenwo写道:
Reply all
Reply to author
Forward
0 new messages