Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [multi-threading]

The tag has no usage guidance.

0
votes
0answers
10 views

HaProxy Configurations Error while setting up multi proc environment

I want to achieve 6000/sec Requests and trying to setup HaProxy with muli proc Settings but Getting this Error. cpu-map expects a process number including 'all', 'odd', 'even', or a number from 1 ...
0
votes
0answers
19 views

How do I download a pre “signed s3” file using aria2c?

How do I download a pre "signed s3" file using aria2c ? When I tried it, the output was showing one line, meaning one connection. But the whole reason for using aria2c is to download it quick using ...
1
vote
2answers
54 views

Scaling Apache/PHP is as simple as maximizing the number of CPU cores?

I have an Linux/Debian server with Intel i7 CPU with 4 cores and 8 threads. When I run my heavy duty Apache/PHP job it uses 1 thread, and when I run concurrent Apache/PHP jobs they each use their own ...
1
vote
2answers
338 views

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 ...
2
votes
3answers
255 views

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 ...
1
vote
0answers
55 views

Apache 2.4 mpm_winnt: one thread takes all resources

I am working with Apache 2.4.33x64 on Server 2008 to run a site for max. 15 users. On the site you can do some really expensive calculations which can take some minutes (an external script is called). ...
0
votes
0answers
41 views

Multi process powershell

The below script will help me to check the firmware version of iDRAC and help upgrading if the version found below 03.80. This works one by one in forloop and takes much time to complete. Is there any ...
3
votes
0answers
271 views

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 ...
0
votes
0answers
29 views

Memory utilization in Centos OS 6.6 (Virtual and RSS)

My C++11 application run for days without reboot to perform fluid simulation. After running it for 6days, this is the memory footprint: RSS 54MB VSZ 5.6GB Why virtual memory increased to 5.6GB? There ...
2
votes
0answers
53 views

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 ...
0
votes
1answer
120 views

HAProxy uniform balancing between processes

We using nbproc 10 for multiprocess HAProxy. Server with Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz. In config: nbproc 10 cpu-map 1 0 cpu-map 2 1 cpu-map 3 2 cpu-map 4 3 cpu-map 5 4 cpu-...
0
votes
0answers
176 views

marathon-lb mapping process to CPU core

We use marathon-lb as dcos load-balancer. To increase performance of haproxy next config is used global nbproc 4 cpu-map 1 0 cpu-map 2 1 cpu-map 3 2 cpu-map 4 3 stats socket /...
0
votes
1answer
183 views

Can Apache HTTP server work as thread-per-request?

I'm trying to fully understand the differences between Apache and Nginx. I've come across the concepts of thread-per-connection and thread-per-request. Then, I've also learned about Apache's MPMs. ...
0
votes
0answers
513 views

windows server 2012 cpu quota

I have written a multi-threaded program that is running on Windows server 2012. The program will create threads to take advantage of multiple CPUs and I can control the number of simultaneous threads ...
0
votes
2answers
153 views

run command on multiple threads

I am running a command (pngquant to be precise: https://github.com/pornel/pngquant) in a terminal window. I noticed, that if I open 4 terminal windows, and run pngquant command in each of them, I get ...
0
votes
1answer
211 views

Syslog-NG is spooling messages

I am currently using Balabit's Syslog-NG to concentrate my IT logs and convey them in a remote server, via a TCP connection, which can allow one listening port only. Thing is, my log volume is really ...
-1
votes
1answer
145 views

Virtual machines and dual socket setups: minimizing need for CPU-to-CPU communication

I am planning to build a multi-OS workstation overseen by (probably) KVM, on which I will do a variety of tasks. Some of these tasks lend themselves to multithreading better than others, so I want to ...
1
vote
1answer
51 views

Application caps at 20% utilization per core no matter how many threads are launched

I'm trying to use a Dell Poweredge R900 I got secondhand as a compute pool (4x quadcores gives me 16 cores to run simulations with). It's running windows server 2008 R2 enterprise at the moment. I'...
2
votes
0answers
38 views

How does a server (e.g. web) manage multiple request/connections? [closed]

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 ...
-2
votes
1answer
181 views

PHP - Multicore for hashing

I have a server with 2 intel xeons on it, this gives me quite a lot of cores. And on that server i have an app, that uses php to hash passwords in blowfish. But the issue is php is not using all the ...
0
votes
1answer
1k views

Why robocopy with multi-treading copies faster

I have been using robocopy with the switch MT and really makes a difference in coping time. I would like to know why the CPU treads act as a bottle-neck while copying files or what makes robocopy ...
2
votes
0answers
459 views

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 ...
0
votes
1answer
123 views

Application GUI on a heavy load tomcat doesn't respond

We have a backend webapp installed on tomcat 8 that has a GUI part written in Apache wicket MVC (version 1.4) - the wicket GUI fails to respond the moment the server starts doing heavy processing. ...
1
vote
3answers
804 views

Why is method that uses gevent in a mod_wsgi deployed Flask api raising error about switching threads?

I am trying to deploy a Flask api via Apache/mod_wsgi. The api uses Gevent to provide concurrency for a recursive method. However, it is throwing the following error [Mon Feb 08 12:05:37 2016] [error]...
1
vote
2answers
2k views

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 ...
1
vote
1answer
427 views

Use GPU to speed up server processing

I have a server that handles strings of data pushed from another server. Sometimes we receive thousands a second. This might be overly simplistic but would putting a Graphics card in the server assist ...
0
votes
0answers
123 views

App not using all cores on VM after migrating host

We have a DL380 G7 with 2x Xeon E5645 processors running at 2.4Ghz, on which we had ESXi 4.1 installed with a few VMs. One of our VMs had Windows Server 2008 R2, with 4x vCPU and 12GB RAM. This was ...
3
votes
1answer
588 views

multithreading a single threaded application worker [closed]

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%...
0
votes
2answers
524 views

how to check if a process with heavy io usage is running properly

I am now managing a computer cluster for scientific computing. Some processes in the cluster need heavy io usage. Now I find such a process: Its state changes rapidly between DOWN and RUN and its cpu ...
-1
votes
2answers
918 views

How to run a single-threaded application on multiple processor cores efficiently? [closed]

There is this old application that we are using (called Aldfaer) that only uses a single thread. One of its processes takes about 90 minutes to complete at this moment, and we would like to decrease ...
0
votes
1answer
345 views

Install amphp / thread on a Debian Wheezy 64 bits

I'm trying to install a multi-thread PHP system on one of my server. After a few readings, the simplest solution seems to use Pthreads with an amphp\thread implementation. http://www.mullie.eu/...
1
vote
1answer
1k views

uWSGI raises segfaults when defining several mount points in preforking+threaded mode

I'm hosting an application consisting of several Python modules. So far we use Apache in MPM worker mode and mod_wsgi, which is a working environment. Now we want to check if nginx + uwsgi may be a ...
9
votes
1answer
8k views

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 ...
12
votes
1answer
5k views

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 ...
-2
votes
1answer
1k views

Check if mysql is using multithreading?

When I check the processes/active tasks on centos using the top command, when using SSH. I only see 1 mysql process. Does this mean that it is only using one cpu core out of my 4 cpu cores?
1
vote
1answer
3k views

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-...
2
votes
2answers
145 views

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 ...
1
vote
2answers
166 views

redmine multitheaded

Our redmine server is not responding due to connecting it to a large repository. It has not crashed but it's just busy until it checks it out, or whatever redmine does when you set a new repo for a ...
3
votes
1answer
717 views

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 ...
2
votes
1answer
225 views

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....
0
votes
1answer
3k views

Single-threaded application being balanced across CPU cores?

Is there an easy way to check whether a certain single-threaded application is being balanced across CPU cores by Windows? I have already tried Process Explorer but I could not find a way to read it ...
1
vote
1answer
349 views

Confusion about PHP Non-Thread safe

PHP 5.1.6 - Non-Thread Safe ( Thread Safety=disabled in phpinfo() ) Apache 2.2.3 - MPM prefork Should I be using prefork or worker? If so is this an easy switch?
1
vote
2answers
950 views

PHP / SSH2 Multi-threading

I'm basically done using SSH2 with PHP. Some may already that while using it, the PHP code actually waits for all the listed commands to be executed in SSH and when everything is done, it then gives ...
1
vote
1answer
1k views

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 ...
1
vote
2answers
3k views

Linux Scheduler (not using all cores on multi-core machine) RHEL6

I'm seeing strange behavior on one of my servers (running RHEL 6). There seems to be something wrong with the scheduler. Here's the test program I'm using: #include <stdio.h> #include <...
-1
votes
3answers
1k views

613 threads limit on debian [closed]

When running this program thread-limit.c on my dedicated debian server, the output says that my system can't create more than around 600 threads. I need to create more threads, and fix my system ...
0
votes
1answer
1k views

Tomcat performing terribly for no apparent reason

We're running a game application .WAR on Tomcat 6 on an Amazon EC2 server, 8 core processor, 7gb RAM. The application uses a MySQL database hosted on Amazon RDS. This Facebook application takes ages ...
8
votes
5answers
14k views

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 ...
1
vote
1answer
283 views

Java doesn't seem to utilize more than two cpus

In my current setup (debian squeeze x64, 6 cpus) neither java nor apache seem to utilitze the full potential of the server. The munin monitoring shows cpu usage never exceeds the 200% mark. We ran ...
10
votes
3answers
4k views

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'...