semaphore access speed


 
Thread Tools Search this Thread
Top Forums Programming semaphore access speed
# 43  
Old 10-08-2008
Ramen_noodle and migurus, can you please post the result of the following command here:

Code:
 grep -E "(model|cpu|flags)" /proc/cpuinfo  |sort -u

Thank you kindly. I'm especially interested in the "flags".
# 44  
Old 10-08-2008
Code:
cpu cores       : 2
cpu family      : 6
cpuid level     : 10
cpu MHz         : 1200.000
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl est tm2 cx16 xtpr lahf_lm
model           : 15
model name      : Intel(R) Core(TM)2 CPU          4300  @ 1.80GHz

# 45  
Old 10-08-2008
cpu family : 15
cpuid level : 5
cpu MHz : 3201.990
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm pni monitor ds_cpl cid xtpr
model : 4
model name : Intel(R) Xeon(TM) CPU 3.20GHz
# 46  
Old 10-10-2008
Thanks Migurus. So "sep" is not implemented on your XEON, confirming that the syscall/sysent thingy is a red herring.
# 47  
Old 10-10-2008
SemOp Benchmarks on various Linux servers

I have run benchmarks on the following hardware:
  • Xeon 3600, 1024k Cache, no SEP, no model #
  • Xeon 2800, 512k Cache, no SEP, no model #
  • Xeon 2333, 4095k Cache, no SEP, E5E45
  • Opteron 1000, 1024k Cache, no SEP, 270
  • Opteron 2000, 1024k Cache, SEP, 270
  • Opteron 2600, 1024k Cache, no SEP, 285
  • Opteron 2600, 1024k Cache, SEP, 285
These systems were under various amounts of load, so averages were taken, and they cannot be deemed 100% reliable. The benchmarks used a gettimeofday() call which looped for at least 3 seconds. The attached PDFs shows the results in terms of "Tics per SemOp". and "SemOps per Second".

Observations:
The Opteron 270 running at 1GHz and using int 80 for system calls was the fastest per clock tic. The fastest processors (the Xeons) were the slowest. This suggests the problem is the memory access.

The raw numbers show that the sysent call on the Opteron makes the semop about 14% faster. Static compilation generally improved speeds, though because of system load, I would not put much significance on these numbers. The only dynamic linking, really, is the library call to invoke a system call.

Analysis:
I'm going to leave it to others to explain this data.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Semaphore

I was asked to add this piece of code to a c program which I will execute through the shell: for(long i = 0; i < NITER; i++) { sem_wait( &sema); count++; sem_post( &sema); } I didn't get it, which is the critical section ? if it's "count++" how would a thread wake up in order to enter it... (1 Reply)
Discussion started by: uniran
1 Replies

2. Programming

Semaphore

If I create a semaphore and then I fork a number of child processes then all the child process use that same semaphore. Since the process address spaces are different rfom each other then how all the child process are able to access the same semaphore? I understand that semaphore/mutex is at os... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

3. Shell Programming and Scripting

semaphore

Control two exclusively shared resources(semaphore). The two resources are two files. The producer will write even numbers to one file, and odd numbers to another one. The consumer respectively reads from each file until it gets 5 even numbers and 5 odd numbers. Can any one help me with the... (0 Replies)
Discussion started by: gokult
0 Replies

4. Filesystems, Disks and Memory

data from blktrace: read speed V.S. write speed

I analysed disk performance with blktrace and get some data: read: 8,3 4 2141 2.882115217 3342 Q R 195732187 + 32 8,3 4 2142 2.882116411 3342 G R 195732187 + 32 8,3 4 2144 2.882117647 3342 I R 195732187 + 32 8,3 4 2145 ... (1 Reply)
Discussion started by: W.C.C
1 Replies

5. UNIX for Dummies Questions & Answers

semaphore

what is semaphore? can any body explain it in a more simple way than the manual ?? replies appreciated Regards raguram R (7 Replies)
Discussion started by: raguramtgr
7 Replies

6. Shell Programming and Scripting

Semaphore

Hi, I am looking to use a semaphore for the first time in one of my scripts. I am just wondering if there are any simple examples or tutorials around? I am a beginner so the simpler the better :) Thanks -Jaken (2 Replies)
Discussion started by: Jaken
2 Replies

7. Filesystems, Disks and Memory

dmidecode, RAM speed = "Current Speed: Unknown"

Hello, I have a Supermicro server with a P4SCI mother board running Debian Sarge 3.1. This is the "dmidecode" output related to RAM info: RAM speed information is incomplete.. "Current Speed: Unknown", is there anyway/soft to get the speed of installed RAM modules? thanks!! Regards :)... (0 Replies)
Discussion started by: Santi
0 Replies

8. UNIX for Dummies Questions & Answers

Semaphore

Hi, I'm new to UNIX. I need to know what's a semaphore Do reply. Thanks VJ (3 Replies)
Discussion started by: vjsony
3 Replies

9. UNIX for Dummies Questions & Answers

semaphore

hi, is there any command where we can monitor semaphores? (1 Reply)
Discussion started by: yls177
1 Replies
Login or Register to Ask a Question