缓存文件实现Sendfile

This commit is contained in:
GoEdgeLab
2022-04-04 19:46:12 +08:00
parent 1373517c57
commit 64e619e6e3
8 changed files with 79 additions and 13 deletions

View File

@@ -45,6 +45,13 @@
<input type="text" name="fileOpenFileCacheMax" maxlength="6" value="0" style="width: 10em"/>
<p class="comment">保持缓存文件句柄提升缓存文件打开速度建议数量是缓存文件数量的10%。</p>
</td>
</tr>
<tr>
<td class="color-border" v-show="teaIsPlus">开启Sendfile</td>
<td>
<checkbox name="fileEnableSendfile"></checkbox>
<p class="comment"><plus-label></plus-label>使用sendfile提升发送缓存文件的效率。</p>
</td>
</tr>
</tbody>

View File

@@ -54,6 +54,13 @@
<input type="text" name="fileOpenFileCacheMax" v-model="fileOpenFileCacheMax" maxlength="6" value="0" style="width: 10em"/>
<p class="comment">保持缓存文件句柄提升缓存文件打开速度建议数量是缓存文件数量的10%。</p>
</td>
</tr>
<tr>
<td class="color-border" v-show="teaIsPlus">开启Sendfile</td>
<td>
<checkbox name="fileEnableSendfile" v-model="cachePolicy.options.enableSendfile"></checkbox>
<p class="comment"><plus-label></plus-label>使用sendfile提升发送缓存文件的效率。</p>
</td>
</tr>
</tbody>