Comments (5)
个人觉得wrk不能作为极限环境的测试,wrk能产生多少次系统调用,有具体的统计数据吗?
hook系统调用的相关影响和应用产生的系统调用次数有关
我们这边auditd相关测试发现hook系统调用对于 web服务(nginx)这种来说几乎没有延迟影响,猜测是没产生多少系统调用 。
测试时建议加大系统调用次数。可以用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.
是这样的,由于我们hook了connect这个syscall,所以当我们尝试用wrk做压力测试打时候,自然而然的也会测试到我们的HIDS。agent资源控制因为极限测试表现良好,我们就没有限制,最开始是准备用cgroup来做的。
from agentsmith-hids.
非常感谢!谢谢指点
from agentsmith-hids.
@wcc526 我看了下,wrk测试实际调用的syscall的确很低,非常感谢。我会尝试用您的方案测试。
from agentsmith-hids.
@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)
- 为什么不直接使用系统原生的auditd? HOT 1
- 关于AgentSmith-HIDS后续迭代的问题 HOT 10
- 提个建议不定时更新 HOT 12
- 关于AgentSmith内核模块改用kprobe的说明 HOT 1
- 请问和 osquery 相比,有哪些优势吗? HOT 2
- 希望增加注释 HOT 1
- kretprobe 回调函数 HOT 2
- insmod smith.ko 报错 Unknown symbol __check_object_size
- 关于反弹shell及生产环境部署安全性问题 HOT 1
- 驱动在Ubuntu下编译出错 HOT 3
- NIDS什么开源 HOT 2
- HeartBeat 不稳定 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from agentsmith-hids.