ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Q: [python3-3.3.1] RLIMIT в hasher`е
Date: Thu, 11 Apr 2013 16:15:55 +0400
Message-ID: <5166A97B.6040803@solin.spb.ru> (raw)
In-Reply-To: <5166A495.5080202@altlinux.org>

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

11.04.2013 15:55, Paul Wolneykien пишет:
> 11.04.2013 15:48, Aleksey Avdeev пишет:
>>    А что именно тестирует данный тест (test_setrusage_refcount) и каков
>> смысл его кода мне без разницы: проблема локализована и она на несколько
>> уровней ниже, чем ответы на данные вопросы.
> 
>   Тогда можно ещё раз: в чём именно состоит проблема? Нужно знать с
> какой ошибкой завершается этот тест и что именно в этот момент пытается
> сделать программа.

  Это не важно (это несколько уровней выше). Важно, что вызов setrlimit,
с заданными параметрами, возвращает -1.

  Описание вызова и параметров:

10.04.2013 21:06, Aleksey Avdeev пишет:
> 10.04.2013 19:47, Dmitry V. Levin пишет:
...
>> Сколько значений RLIMIT_CPU передается в одном вызове setrlimit?
>> Какие значения RLIMIT_CPU в результате пытается установить этот код?
> 
>   Вызов происходит так:
> 
> setrlimit(resource, &rl)
> 
>   где:
> 
> resource = 0 (константа RLIMIT_CPU из /usr/include/bits/resource.h)
> 
> rl -- структура, содержащая:
> 
> rl.rlim_cur = 1000000
> 
> rl.rlim_max = 1000000
> 
>> На какое поведение setrlimit рассчитывает этот тест?
> 
>   Что setrlimit(resource, &rl) вернёт нечто отличное от -1.

PS: Всё что выше неважно (в рамках теста), т. к. там альтернативный
вариант (по вызовам и/или параметрам) только один: Вызов setrlimit
происходить не будет, если лимиты недоступны python`у. Но это не наш случай.

-- 

С уважением. Алексей.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 897 bytes --]

      reply	other threads:[~2013-04-11 12:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-10  9:11 Aleksey Avdeev
2013-04-10 12:53 ` Dmitry V. Levin
2013-04-10 13:36   ` Aleksey Avdeev
2013-04-10 13:45     ` Dmitry V. Levin
2013-04-10 14:41       ` Aleksey Avdeev
2013-04-10 15:47         ` Dmitry V. Levin
2013-04-10 17:06           ` Aleksey Avdeev
2013-04-10 17:39             ` Dmitry V. Levin
2013-04-11 12:51               ` Aleksey Avdeev
2013-04-11 13:02                 ` Dmitry V. Levin
2013-04-10 19:10             ` Paul Wolneykien
2013-04-10 19:54               ` Aleksey Avdeev
2013-04-10 20:12                 ` Dmitry V. Levin
2013-04-10 20:47                   ` Aleksey Avdeev
2013-04-10 21:22                     ` Dmitry V. Levin
2013-04-11  8:45                     ` Sergey Y. Afonin
2013-04-11 11:48                       ` Aleksey Avdeev
2013-04-11 11:55                         ` Paul Wolneykien
2013-04-11 12:15                           ` Aleksey Avdeev [this message]

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=5166A97B.6040803@solin.spb.ru \
    --to=solo@solin.spb.ru \
    --cc=devel@lists.altlinux.org \
    /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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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