ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
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 01:22:48 +0400
Message-ID: <20130410212248.GD13495@altlinux.org> (raw)
In-Reply-To: <5165CFC9.3070800@solin.spb.ru>

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

On Thu, Apr 11, 2013 at 12:47:05AM +0400, Aleksey Avdeev wrote:
> 11.04.2013 00:12, Dmitry V. Levin пишет:
> > On Wed, Apr 10, 2013 at 11:54:24PM +0400, Aleksey Avdeev wrote:
> >> 10.04.2013 23:10, Paul Wolneykien пишет:
> >>> 10.04.2013 21:06, Aleksey Avdeev пишет:
> >>>> 10.04.2013 19:47, Dmitry V. Levin пишет:
> >>>
> >>>>>>>>      # Issue 6083: Reference counting bug
> >>>>>>>>      def test_setrusage_refcount(self):
> >>>>>>>> ...
> >>>>>>>>              resource.setrlimit(resource.RLIMIT_CPU, BadSequence())
> >>>
> >>>>> Что вообще тестирует тест по имени test_setrusage_refcount?
> >>>>
> >>>>    Похоже он проверяет работоспособность вызова setrlimit (судя по коду).
> >>>
> >>>   Лёша, тебе не кажется, что твой ответ напоминает ответ из анекдота про
> >>> Шерлока Холмса, воздушный шар и программиста? :)
> >>
> >>   Не напоминает -- здесь именно та ситуация и есть. :-/
> > 
> > Вы до сих пор не понимаете, что именно тестирует тест по имени
> > test_setrusage_refcount?
> 
>   Если переводить его название, то получается что-то типа "тест
> установки rusage счетчика ссылок". Причём я незнаю что именно скрывается
> под rusage.
> 
>   По факту -- проверяется возможность выставить некое ядерное
> ограгичение (limit RLIMIT_CPU) в достаточно большое число (которое число
> секунд, по смыслу).
> 
>   Смысл лимита RLIMIT_CPU понятен (см.
> <http://git.altlinux.org/people/solo/packages/?p=python3.git;a=blob;f=python3/Doc/library/resource.rst;h=03a7cb598cd49ee3a345db50c7ee41329169c7eb;hb=001b4a54de71226a2f7e0d9f5a409774a686effd>):
> Максимальное количество _процессорного_ времени (в секундах), что
> процесс может использовать. (Именно процессорного времени, а не времени
> выполнения процесса.)
> 
>   Непонятно:
> 
> 1. Где этот лимит (RLIMIT_CPU) в выводе ulimit (не удивлюсь если это
> "cpu time", но пока не нашёл подтверждения или опровержения).
> 
> 2. Смысл тестирования RLIMIT_CPU именно данным числом. => Непонятно
> можно ли его уменьшить (и на сколько).

:-(

Остается надеяться, что продолжение выяснения всех вопросов, связанных с
тестом test_setrusage_refcount, будет происходить в свободное от основной
работы время.


-- 
ldv

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

  reply	other threads:[~2013-04-10 21:22 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 [this message]
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

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=20130410212248.GD13495@altlinux.org \
    --to=ldv@altlinux.org \
    --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