Giter VIP home page Giter VIP logo

Comments (5)

wcc526 avatar wcc526 commented on June 3, 2024 1

个人觉得wrk不能作为极限环境的测试,wrk能产生多少次系统调用,有具体的统计数据吗?

hook系统调用的相关影响和应用产生的系统调用次数有关

我们这边auditd相关测试发现hook系统调用对于 web服务(nginx)这种来说几乎没有延迟影响,猜测是没产生多少系统调用 。

image

测试时建议加大系统调用次数。可以用dd 先跑下,最直观明了.

dd if=/dev/zero of=/dev/null bs=500 count=100M

此外系统内核低于2.6.32-296 不能加cgroup,这个版本cgroup 有bug, 一旦超了限制,cgroup 会把所有进程给杀了,这个我们线上环境出现过,详情可见https://access.redhat.com/solutions/649543

from agentsmith-hids.

EBWi11 avatar EBWi11 commented on June 3, 2024

是这样的,由于我们hook了connect这个syscall,所以当我们尝试用wrk做压力测试打时候,自然而然的也会测试到我们的HIDS。agent资源控制因为极限测试表现良好,我们就没有限制,最开始是准备用cgroup来做的。

from agentsmith-hids.

EBWi11 avatar EBWi11 commented on June 3, 2024

非常感谢!谢谢指点

from agentsmith-hids.

EBWi11 avatar EBWi11 commented on June 3, 2024

@wcc526 我看了下,wrk测试实际调用的syscall的确很低,非常感谢。我会尝试用您的方案测试。

from agentsmith-hids.

EBWi11 avatar EBWi11 commented on June 3, 2024

@wcc526 我又仔细的看了一下这个问题,我认为你好像对我们项目有些理解上的问题。
1.我们使用wrk是想测试connect这个系统调用,而issue建议使用了read/write的测试方法,我认为这是不妥的,而且我们那份测试报告汇总的确是明确的需要测试connect syscall而非其他。
2.nginx keepalive_timeout低的情况下触发connect低也的确是出现了的,我们正在寻求其他解决方法。
3.希望在讨论的时候明确自己的方式/hook的具体syscall等细节,比如问题中所述的:“hook系统调用对于 web服务(nginx)这种来说几乎没有延迟影响”很有可能是没有hook对的syscall,或者你们server有很长的keepalive_timeout,没有建立新的连接等等,造成影响小的情况。(瞎猜)

from agentsmith-hids.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.