- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hello,
I have a simple little C programs that forks 1-16 processes. In each process it does a loop incrementing a counter and then exits. The main program waits for all forks to end.
When I run this program with 1 process it takes 41 seconds to complete and with 16 processes it takes 23 seconds to complete all of them in total.
To me I can not see how 16 instances of the same programs can reliably finish faster than 1 instance.
Any theories would be welcome.
Cheers,
Ivan Novick
Lien copié
2 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hello,
I think I have found my problem is related to cpu frequency scaling in the kernel. Looking into it.
Cheers,
Ivan

Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable