Henri,

I am not sure if the concurrent process limitation (4) is applicable to the
forking of processes because of multiple KB items. I think it is more of 4
NVT's running in parallel. I am not sure now, need to check the code. 

Do you see an improved performance after changing to KB behavior?

Thanks,
Chandra.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Henri
Doreau
Sent: Wednesday, February 01, 2012 7:29 PM
To: [email protected]
Subject: [Openvas-plugins] Parallelization of default_ssh_credentials.nasl

Hello,

I have noticed a consequent part of the duration of an authenticated Full &
Fast scan was due to default_ssh_credentials.nasl. The script iterates
through a list of 180 username/password couples and sequentially attempts to
use them to connect to the target.

In order to speedup the process, I've tried to load the username/password
list into KB and call get_kb_item() to retrieve each item in a separate
process (see the patch attached, not optimized). As a result I would have
expected to get four (my configuration) concurrent processes connecting to
the target. htop reveals that only two are executed in parallel. I can't
explain this behavior, at the beginning of the scan I can clearly see four
concurrent processes (spawned by different NVTs). After a while
default_ssh_credentials.nasl is the only one still running, but with two
processes only.

Any idea what could be wrong or what I could be missing?

Regards.

--
Henri Doreau |  Greenbone Networks GmbH  |  http://www.greenbone.net Neuer
Graben 17, 49074 Osnabrueck, Germany | AG Osnabrueck, HR B 202460 Executive
Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner

_______________________________________________
Openvas-plugins mailing list
[email protected]
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins

Reply via email to