Tokyo Cabinet 调音参数

发布于 2024-08-15 16:19:47 字数 975 浏览 5 评论 0原文

我一直在尝试为我的应用程序找到更好的东京内阁(或东京暴君)配置,但我不知道具体如何。我知道某些参数的含义,但我想要进行微调控制,因此我需要知道每个参数的影响。东京文档确实很好,但目前还不行。

  • TCHDB -> TCHDB -> *bool tchdbtune(TCHDB *hdb, int64_t bnum, int8_t apow, int8_t fpow, uint8_t opts);*

如何使用:bnumapow 和 <代码>fpow?

  • <代码> TCBDB - > *bool tcbdbtune(TCBDB *bdb, int32_t lmemb, int32_t nmemb, int64_t bnum, int8_t apow, int8_t fpow, uint8_t opts);*

如何使用:lmembnmembbnumapowfpow

  • <代码>TCFDB - > *bool tcfdbtune(TCFDB *fdb, int32_t width, int64_t limsiz);*

如何使用:widthlimsiz?注意:我只是将其放在主题中以获取所有类型的数据库,这非常简单。

  • TCTDB-> *bool tctdbtune(TCTDB *tdb, int64_t bnum, int8_t apow, int8_t fpow, uint8_t opts);*

如何使用:bnumapow 和 <代码>fpow?

I have been trying to find a better Tokyo Cabinet (or Tokyo Tyrant) configuration for my application, but I don't know exactly how. I know what some parameters mean but I want to have a fine tuning control, so I need to know the impact of each one. The Tokyo documentation is really good but not at this point.

  • TCHDB -> *bool tchdbtune(TCHDB *hdb, int64_t bnum, int8_t apow, int8_t fpow, uint8_t opts);*

How do I use: bnum, apow and fpow?

  • TCBDB -> *bool tcbdbtune(TCBDB *bdb, int32_t lmemb, int32_t nmemb, int64_t bnum, int8_t apow, int8_t fpow, uint8_t opts);*

How do I use: lmemb, nmemb, bnum, apow and fpow?

  • TCFDB -> *bool tcfdbtune(TCFDB *fdb, int32_t width, int64_t limsiz);*

How do I use: width and limsiz? Note: I am only putting this to get all types of database in the topic, this one is really simple.

  • TCTDB -> *bool tctdbtune(TCTDB *tdb, int64_t bnum, int8_t apow, int8_t fpow, uint8_t opts);*

How do I use: bnum, apow and fpow?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许久 2024-08-22 16:19:47

我也遇到了同样的问题。

但由于结果很大程度上取决于您的应用程序,我建议作为两个因子实验

  • 基准您的应用程序的每个参数都有一个低值和一个高值(使用多次运行来获得对结果的信心)
  • 根据基准结果进行计算(每个因素的影响)

您拥有表明参数重要性的数据。影响高的因素对性能非常重要,影响低的因素则不重要。

您应该微调重要参数。

I stood before the same problem.

But because the results will highly depend on your application, my advise as a two factrial experiment:

  • Benchmark your application with a low value and a high value for each parameter (use multiple runs to gain confidence into the results)
  • Calculate based on the benchmark results (the effect of each factor)

You have than data that indicates the importance of the parameters. Factors with a high effect are very significant for the performance, factors with a low effect are not important.

You should than fine tune the important parameters.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文