Questions tagged [multi-threading]
79 questions
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
- 794
- 3
- 21
- 37
3
votes
1 answer
How does Apache process several requests at a time?
If 10 requests hit Apache, does it process them one by one, so when R3 finishes, then it starts to run R4, or does it fire 10 processes/threads/whatever and are resolved simultaneously?
Now some background: I have a PHP script that takes up to two…

Vicenç Gascó
- 141
- 4
2
votes
0 answers
DNS doesn't resolve some domains on huge amount of requests
I need to check 200kk (200,000,000) domains for availability and CMS information.
I'm using php 7.1 and simulating multi-thread check.
Hardware and config
The server hardware: Multicore CPU, 64GB RAM, SSD disks, 500 Mbits dedicated bandwidth (OVH…

Jekis
- 181
- 10
2
votes
3 answers
Copying files using multi threading increases performance - Why?
When copying files from one location to another, the most used resources are memory (buffers) and I/O on the devices. However, when using a multi threaded copy utility such as Robocopy, when you specify a large number of threads the performance…

NoChance
- 135
- 1
- 6
2
votes
0 answers
How does a server (e.g. web) manage multiple request/connections?
I read that apache has a solution to create new thread per new request, but I still have some questions.
How is possible that one server can manage thousands (even a milion connection - depends from the app) at the same time?
Does this depends from…

user155293
- 121
- 1
2
votes
0 answers
Is there a way to check resource utilization on a cluster running SLURM?
Not sure if this question fits better here or at Unix.SE but I figured it feels more appropriate here. I am running some computation-heavy research on a national cluster which uses SLURM for scheduling jobs.
I realized that a part of my batch…

posdef
- 163
- 5
2
votes
2 answers
The apache2handler SAPI is not supported by pthreads
It has been weeks now that I cannot install pthreads. I am going to list the error logs then I will list my configuration options. These are the errors I get:(Apache Error Log)
The apache2handler SAPI is not supported by pthreads in Unknown on line…

D.elp
- 121
- 1
- 6
2
votes
1 answer
Django mutli-threading on apache/mod_wsgi/windows
I am quite new to the combination of apache and django and quite naive frankly regarding to how multi-threading is handeled. Specifically I run on a windows server, so I know the MPM is only thread-based.
I have an application which serves a…

Ilan lewin
- 123
- 1
- 3
2
votes
2 answers
Linux: Finding the system processes which are at the top
I am running a multithreaded program on my 8-core processor. top command shows 8 processes are running and each one utilizes a core by 100%. The problem is that only 21% are marked as user cpu and my application is running so slow:
Cpu(s): 20.6%us,…

lashgar
- 681
- 1
- 5
- 16
2
votes
1 answer
Python multithreading not working on VPS server
I am running an python multithreaded application with multiple processes which scrapes data from some websites.
While running on my localhost It works great, but on the vps server I am using( Centos 5.8, 2.6 GHZ with 4 cores) performs very slow.…

Sabirul Mostofa
- 53
- 1
- 5
2
votes
1 answer
Poor SSL performance with vsftpd
I'm trying to tweak vsftpd to achieve maximum performance for my usage:
I have only one or two clients that connect to the server.
File size is between ~15MB and 1GB.
Typical transfer batch represent between 1 and 2GB of data.
For testing…

petrus
- 5,297
- 26
- 42
2
votes
2 answers
CPU Utilization of a multithreaded process
Background: I have a whole mess of systems running the 2.6.20 and 2.6.22 kernel in what started as a Fedora Core 2 install several years ago. These systems have 8 cpus, as reported by cat /proc/cpuinfo.
My question is, when a process is running…

Justin Bennett
- 198
- 3
- 9
2
votes
3 answers
Do Nginx performe better on Linux compared to Apache?
Apache vs Nginx are compared performance wise since Apache is based on threads (for each new connection a new thread) and nginx is based on process (for each new connection to the server a new process). So Nginx perform better since process based.…
user737498
2
votes
1 answer
Why my server has a lot of mysql threads?
I noticed my server is consuming almost 500 MB of RAM, with 19 threads started, as shown in the following image.
MYSQL Threads top image:
Here is the configuration:
-------- General Statistics --------------------------------------------------
[--]…

daniol
- 54
- 1
- 4
2
votes
3 answers
Threading of PGP Whole Disk Encryption on server
I wish to use a 2010 vintage quad core Xeon server to periodically encrypt 500GB eSATA drives. I have three questions:
1) I assume the current version of WDE is fully multi-threaded and throughput scales roughly linearly with the number of…

Lunatik
- 133
- 1
- 8