Questions tagged [multi-threading]
76 questions
19
votes
5 answers
What is better for a Java Web Application: more CPU cores or a higher clock speed?
I'm not sure whether serverfault is the right place to ask this, but I wonder what choice you would make if you had to select a new CPU type for your Java Web Application:
a) a CPU with 32 cores and clock speed 2.5 Ghz
or
b) a CPU with 8 cores but…
bzero
- 369
- 2
- 9
17
votes
1 answer
Taskset not working over a range of cores in isolcpus
To preface I'm using Debian Wheezy with kernel 3.2 on an AMD64 chipset. My machine has two Xeon E5-2690 cores. I set up the boot parameters so that all the cores on one CPU are dedicated to a single process. To do this I've set…
user79126
- 449
- 1
- 4
- 9
13
votes
1 answer
Why do we get a sudden spike in response times?
We have an API that is implemented using ServiceStack which is hosted in IIS. While performing load testing of the API we discovered that the response times are good but that they deteriorate rapidly as soon as we hit about 3,500 concurrent users…
Christian Hagelid
- 201
- 3
- 7
13
votes
5 answers
Running multiple scp threads simultaneously
Running multiple scp threads simultaneously:
Background:
I'm often finding myself mirroring a set of server files a lot, and included in these server files are thousands of little 1kb-3kb files. All the servers are connected to 1Gbps ports,…
caesay
- 295
- 1
- 3
- 9
10
votes
2 answers
Is it possible to limit a Linux process so that it can only run on a particular core on a particular machine?
Let's say I have a quad-core box and four identical processes, each with ten threads. Is it possible, in Linux, to say that Process A is only allowed to run on CPU 0, Process B is only allowed to run on CPU 1, etc?
mike
- 3,853
- 11
- 29
- 27
10
votes
3 answers
Renice: How to change all threads?
When I renice a multithreaded process in Ubuntu 10.04, then view the results in top, it seems that only the main thread actually gets reniced. All the other threads retain their old nice value. What's the easiest way to renice all threads in a…
dsimcha
- 661
- 1
- 6
- 12
7
votes
3 answers
taskset core numbers question
I have quad core CPU with hyper threading enabled. So I have 8 logical cores. I want to limit my application to use only 4 cores and I want this 4 cores to be different physical cores. Which taskset options (core numbers) should I use? :
taskset -c…
Artem Bergkamp
- 71
- 1
- 2
6
votes
2 answers
Why /proc/cpuinfo shows different flags for cores on the same cpu?
cat /proc/cpuinfo on my system gives me different flags for my 2 cores. Can someone explains to me why? I'm running Ubuntu 10.10 kernel 2.6.35-24-generic.
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model :…
Vincent
- 161
- 5
6
votes
1 answer
How can I tell the maximum threads my server can run?
Here is the machine spec:
CPU(s): 20
Thread(s) per core: 1
Core(s) per socket: 10
Socket(s): 2
Based on what I've read so far, these numbers mean that I can run 20 parallel jobs because I have 20 CPUs.
However, how…
tera_789
- 163
- 1
- 1
- 5
5
votes
4 answers
Does SQL Server Database Mail use threads while sending mail?
We are using SQL Server 2008 Database Mail to send emails to our website visitors. I don't know whether SQL Server sends mail one by one by picking up from the queue or it will use threads to send emails in simultaneous fashion.
If Database Mail…
kiran
4
votes
3 answers
Why having more and faster cores makes my multithreaded software slower?
I am experiencing bizarre behavior on scaling a multiprocess/multithreaded C++ application. The application contains 10 separate processes, communicating through Unix Domain Sockets and each one having ~100 threads doing IO and several processes on…
sorush-r
- 151
- 1
- 5
4
votes
0 answers
Fastest way to sort very large files preferably with progress
I have a 200GB flat file (one word per line) and I want to sort the file, then remove the duplicates and create one clean final TXT file out of it.
I tried sort with --parallel but it ran for 3 days and I got frustrated and killed the process as I…
GMX Rider
- 141
- 2
4
votes
2 answers
Why are concurrent downloads faster
Many download managers like this, this and this support downloading a file over multiple parallel connections, one per thread.
The concept is that each connection will download one part of the file separately.
For example if there are 5 connections,…
Anmol Singh Jaggi
- 143
- 6
3
votes
0 answers
Read/Write Split in Mongodb
We are looking for some load balancing tool which can split read and write load in between replica and master node, I know it can be possible through driver or application level but I would like to do at databases level i.e ProxySQL for MySQL DB
Sudhir Shekhsaria
- 131
- 1
3
votes
1 answer
multithreading a single threaded application worker
I have a server which I want to dedicate for converting doc files to pdf via LibreOffice. The server has 6 cores and LibreOffice is single threaded. This means that generating a single pdf uses 16.666% of my total CPU power. Converting a file can be…
cherouvim
- 744
- 3
- 18
- 37