[Open-scap] How to reduce openscap memory usage in OL7?

ajay nair ajaynair59 at gmail.com
Wed Apr 20 15:46:20 UTC 2022


Hey Marek,

Thanks for the response! To reduce memory usage, can I simply divide all
the rules that I want to run into different profiles + tailor combinations?
E.g. if I want to run 20 rules (r1-r20) from a profile that has 100 rules
(r1-r100), can I run openscap twice, once by using a tailor that disables
r11-r100 and then again by using a tailor that disables r1-r10 + r21-r100?
Will this reduce the memory usage?

On Wed, 20 Apr 2022 at 09:58, Marek Haicman <mhaicman at redhat.com> wrote:

> Hello Ajay,
> yeah, the openscap can be a bit memory demanding. What we have found, the
> main culprits are the rules that are traversing the whole filesystem. If
> you separate those, you should be able to get the memory usage under
> control.
>
> Best of luck!
> Marek
>
> On Tue, Apr 19, 2022 at 10:11 AM ajay nair <ajaynair59 at gmail.com> wrote:
>
>> Hi team,
>>
>> I was experimenting with Openscap and I observed that the memory usage is
>> very high. Is there a way to reduce/bottleneck it? E.g. I use profile +
>> tailor to run around 200 rules at a time. Can I break the runs into
>> multiple parts by using separate tailor to reduce the memory usage?
>>
>> --
>> -- Ajay Nair
>> _______________________________________________
>> Open-scap-list mailing list
>> Open-scap-list at redhat.com
>> https://listman.redhat.com/mailman/listinfo/open-scap-list
>>
>

-- 
-- Ajay Nair
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/open-scap-list/attachments/20220420/2e701fc7/attachment-0001.htm>


More information about the Open-scap-list mailing list