- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Syslog Performance under hpvm guest
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2011 01:48 PM
тАО01-05-2011 01:48 PM
Syslog Performance under hpvm guest
We have a strange question regarding the syslog() call.
I am testing the performance of hpvm 4.2 running in HP BL860C box
Host is running HPUX 11.31 vse and guest is running HPUX 11.31
I have the following code to test the performance:
#include
#include
#include
int main (void)
{
int iteration =0;
time_T startTime=0;
openlog("ptest",LOG_PID,LOG_USER);
cout<<"\nNumber of Iteration: ";
cin >> iteration;
startTime = time(0);
for(int i=0; i
syslog(LOG_DEGUG,"Test Message");
}
cout << "\nIteration Count="<
complied it under the guest and ran it.
The result was very different between the HPVM guest and host and standalone(without hpvm).
For instance, if I take the Iterations as 1000 times.
HPVM guest was 27.2 seconds compared with 3.4 seconds in HPVM host.
Does anyone experience this?
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2011 04:03 AM
тАО01-06-2011 04:03 AM
Re: Syslog Performance under hpvm guest
This is not really HPVM performance problem. It's more related to whether syslogd which drains /dev/log pipe manages to run in parallel with your logging code or if they share the same cpu. If they share the same cpu, the pipe consumes only 8k and since syslog(3c) writes in 2k chunks, for 1000 iterations you get 250 times EAGAIN from the write() call. Since we go to sleep for .1 sec to let the pipe drain after EAGAIN, that becomes some 25 seconds of additional sleep time.
Make sure you are comparing apples and apples. HPVM guest has typically less cpus than the host and thus on host the chance of syslogd getting scheduler right after it's woken up after the first write to pipe is higher.
Also any throttling in HPVM CPU entitlements (maximum entitlement set to <100%) or some other load running on the guest could lead to the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2011 07:47 AM
тАО01-06-2011 07:47 AM
Re: Syslog Performance under hpvm guest
I wonder: instead of reporting elapsed time, that depends on many factors, may be you could try to report CPU time used [ man 3c clock ]. Not sure, but I think it could be a more accurate value to analyse.
HTH
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2011 12:34 PM
тАО01-06-2011 12:34 PM
Re: Syslog Performance under hpvm guest
Thanks for your reply.
I would consider more like it is HPVM performance problem cause the same code running under Host is fast or reasonable time.
thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2011 12:43 PM
тАО01-06-2011 12:43 PM
Re: Syslog Performance under hpvm guest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2011 01:19 PM
тАО01-06-2011 01:19 PM
Re: Syslog Performance under hpvm guest
It has 1 cpu on host and only one guest with 1vcpu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2011 01:32 PM
тАО01-06-2011 01:32 PM
Re: Syslog Performance under hpvm guest
On guest with single vcpu your code which writes to /dev/log and syslogd which drains it have to serialize and the delays I've mentioned are inevitable. The same would happen on standalone (non virtual) system with single CPU core.
The runtime in seconds you'll see will always be > (number_of_iterations/40).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2011 10:12 PM
тАО01-07-2011 10:12 PM
Re: Syslog Performance under hpvm guest
What if I assign 2 vcpus on the guest?
What if I add one more physical CPU to the blade to make it 4 cores and assigned 4 vcpus to the guest?
Can you guide me how the host calculation is 3.4 secs?
Thanks in advance for your time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2011 12:21 AM
тАО01-10-2011 12:21 AM
Re: Syslog Performance under hpvm guest
syslog for CPU.