How do I reject getting my own comments on e-mail?
how to generate 100% cpu load on solaris 10 zone
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• RYXI
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

RYXI > Solaris > how to generate 100% cpu load on solaris 10 zone 15 January 2008 21:57:21

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

how to generate 100% cpu load on solaris 10 zone

G F 15 January 2008 21:57:21
 I tried to compile a quick one liner program :

main()
{
int i, j;
for (i=0; ; i++)
j++;
}
expecting to see 100% in top, and to my disbelief it stayed at most at 33%

I am not sure on what exact solaris box I am running, I am inside a solaris
10 zone.

Would the zone server allocate only say a quota of total cpu to each zone ?

By being at 33% does it mean there are 3 zones ?

here it says :

http://www.solarisi­nternals.com/wiki/in­dex.php/Performance_­Metric_00001

that any old loop :

perl -e 'while (--$ARGV[0] and fork) {}; while () {}' 4

will give 100% load, but not in my case ?
thanks for any information

Add comment
M ns Rullg rd 15 January 2008 03:53:42 permanent link ]
 "g f" <gfanini@tiscalinet­.it> writes:

I tried to compile a quick one liner program :
main()
{
int i, j;
for (i=0; ; i++)
j++;
}
expecting to see 100% in top, and to my disbelief it stayed at most at 33%
I am not sure on what exact solaris box I am running, I am inside a
solaris 10 zone.
Would the zone server allocate only say a quota of total cpu to each zone ?
By being at 33% does it mean there are 3 zones ?
here it says :
that any old loop :
perl -e 'while (--$ARGV[0] and fork) {}; while () {}' 4
will give 100% load, but not in my case ?

That's not "any old loop". It creates 4 infinite loops.

Try a proper fork bomb. Run this in a shell:

:(­{ :|­:& };:

--
M ns Rullg rd
mans@mansr.com
Add comment
Darren Dunham 15 January 2008 21:57:21 permanent link ]
 In comp.unix.solaris g f <gfanini@tiscalinet­.it> wrote:
I tried to compile a quick one liner program :
main()
{
int i, j;
for (i=0; ; i++)
j++;
}
expecting to see 100% in top, and to my disbelief it stayed at most at
33%

'top' will show you system CPU on Solaris. So it's possible that you
only have 3 online CPUs (33% ~ 1CPU), or that other constraints are
occuring.

I am not sure on what exact solaris box I am running, I am inside a solaris
10 zone.
Would the zone server allocate only say a quota of total cpu to each zone ?

It's possible, yes.

By being at 33% does it mean there are 3 zones ?

No. Because your process is single threaded, you can't use it to
generate more than 1 CPU of load. So the percentage depends on how many
CPUs are on the system.

You may need to run more than one copy to saturate multiple CPUs.

here it says :
that any old loop :
perl -e 'while (--$ARGV[0] and fork) {}; while () {}' 4
will give 100% load, but not in my case ?

Where does it say 100% load?

Also, that's not "any old loop". That generates 4 separate processes,
each looping. The text mentions that you should adjust the '4' to be
the number of CPUs on your system.

Since your process does not fork or create threads, you have to run it
multiple times to generate loads for multiple CPUs.


This is earlier on that page...

# a "run away" process or thread usually pegs a single CPU at 100%,
however for a multi-CPU server this will be divided by the CPU count
- making this error state difficult to identify (eg, spotting a 3%
rise for a 32 CPU server).

and futher down...

Technical Details

For a single CPU or virtual CPU (eg, hardware thread): this metric
is the percentge of time during the interval that the CPU did not
spend in an idle state, such as running the system idle thread. ie,
the percentage of time that the CPU ran user and kernel code. This
time includes CPU cycles stalled waiting for memory bus requests to
main memory.

For a multiple CPUs: the sum of the single CPU percentages, divided
by the number of CPUs. A maximum of 100 corresponds to all CPUs at
100 percent utilized for that interval.

--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com­/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


RYXI > Solaris > how to generate 100% cpu load on solaris 10 zone 15 January 2008 21:57:21

see also:
Jaki procek do pіyty ABIT KT7
Problem z polskim znakiem Д‡
Things are just Ducky at Tivo ...
пройди тесты:
see also:
Printer for lap top
Cisco CallManager Express 5.0 CDR
0

  Copyright © 2001—2008 RYXI
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.ryxi.com.
Сообщения об ошибках оставляем в сообществе bugs.ryxi.com.
Предложения и комментарии пишем в сообществе suggest.ryxi.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .