ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: community@altlinux.ru
Subject: [Comm] Re: ?: SMP compilation
Date: Tue, 3 Jun 2003 18:51:31 +0400
Message-ID: <20030603145131.GD1317@solemn.turbinal.org> (raw)
In-Reply-To: <20030603094527.1374c035.olli@rbauto.ru>

[-- Attachment #1: Type: text/plain, Size: 843 bytes --]

On Tue, Jun 03, 2003 at 09:45:27AM +0400, Oleg K. Artemjev wrote:
> Допустим есть некая программа, которую кодили не задумываясь о smp системах.
> Есть система с дуальным iPPro200. На ней поставлен gcc. Вопрос - есть ли какие опции gcc
> позволяющие получить бинарь быстрее работающий на smp системе, с учетом того, что
> исходник специально под smp не строился?

Нет.  Ну вы сами подумайте.  Бинарики исполняются в терминах процессов
(fork+execve).  Каждцый процесс выполняется на отдельном CPU (при
перключении сохраняются регистры и указатель стека).  Чтобы
задействовать второй CPU, нужно породить новый процесс (или тред).

Короче, на типичных задачах SMP архитектура не даёт заметного прироста.
За исключением серверов, на которых интенсивно выполняется большое число
процессов, которые можно эффективно распределить между процессорами.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2003-06-03 14:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-03  5:45 [Comm] " Oleg K. Artemjev
2003-06-03  6:41 ` [Comm] " Konstantin Lepikhov
2003-06-03  6:49   ` Sergey Krivulja
2003-06-03  7:13     ` Oleg K. Artemjev
2003-06-03  7:12   ` Oleg K. Artemjev
2003-06-03  9:33 ` [Comm] " Vyacheslav Sokolov
2003-06-03 14:51 ` Alexey Tourbin [this message]
2003-06-04  5:19   ` [Comm] Re: ?: SMP compilation [JT] Oleg K. Artemjev
2003-06-04  5:21   ` Oleg K. Artemjev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030603145131.GD1317@solemn.turbinal.org \
    --to=at@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git