Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: INADA Naoki Newsgroups: comp.lang.python Subject: Re: What is heating the memory here? hashlib? Date: Sun, 14 Feb 2016 18:49:51 +0900 Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de GGqshdxq3w2DuWnHDs8dNw8wX9flIZ4iq/Mk6GkHL73w== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.09; 'posted.': 0.09; ':-)': 0.12; 'being,': 0.16; 'investigate': 0.16; 'paulo': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'reproduce': 0.16; 'memory': 0.17; 'pfxlen:0': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.24; 'all.': 0.24; 'module': 0.25; 'message-id:@mail.gmail.com': 0.27; 'correct': 0.28; 'url:mailman': 0.30; 'post': 0.31; 'computing': 0.32; 'url:python': 0.33; "i'll": 0.33; 'url:listinfo': 0.34; 'received:google.com': 0.35; 'url:org': 0.36; 'received:209.85': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'done.': 0.37; 'received:209': 0.38; 'thank': 0.38; 'subject:the': 0.39; 'unable': 0.39; 'url:mail': 0.40; 'some': 0.40; 'here.': 0.62; 'more': 0.63; 'here': 0.66; 'results': 0.66; 'situation': 0.67; 'subject:here': 0.84; 'walking': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vXHFu+mrQ9KPCOkQVFdFeenzKRcHhH7yRcUSpzdX2uQ=; b=cF4qO/TGdWrn7TwJWoHW3iOsVF1o5XqHC8yS06lABQx1xjhdankQuacNjmSqVhXlZc BrdS2QszTk2X+TWfu0qUGdDq6cs9c3Xw85KWs8ei5iYqz/vtCR4wYmRln/jaYNgDHRWi kG+DQntSCLkgyv0jfx8YLWuQdUsduMUhvPiYmKo6FpS1KB6BICcBkZjzIblkAaxSGeNb HfdVJOBhHSEchpK1B/GGvCPqd2mB99Q5TSenxSdT4qTEh7pDB7CzzSPKfGkrH8ybgsfL QihCQDm4Y6t2lCNKwvl/1M2dkwQmfNi/zWTA6aQzkoBBWBJJtjfvJHGD8RcxU/V/B7DX kNtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=vXHFu+mrQ9KPCOkQVFdFeenzKRcHhH7yRcUSpzdX2uQ=; b=l5RyCCCZPSwQY1PSroEw4XVKU+YOoCj2FZRAQCQ9hcUMc//TuZ83MDAEQBaTxQ+2e4 kWmrv/GhjBjFLhmaW4Re81U0bakPCZkVa2eAa7RDseNbbKoqIDnrifB4zQCNSHYfiUbh e8lEs/STftOFTNnPWgiRhFUIrH4U6xBJJn/UBgYU5NcGhxjEl8CKR2Onw8CDG/RJZlb0 tlKHvEc0Y01VthGZQWZ0D34iGtEWZ6546h7HJIexB+MiAtiIL3oPIUNIwELfeZQz7Cig wM/zhTiNpEdmSd6QrDhXLkNqfd5/eBBdafSHKqLgYCRZfnDeNtoEBhDUI515VZwIWqd2 mzcQ== X-Gm-Message-State: AG10YOTB9q9VcJu22nezJLiHosyF3yBfLOG9hOuhI8YoGJoFCE9qhSLOOAIkQmVervXar4QWZUzFfI6Ic+VrRg== X-Received: by 10.107.10.101 with SMTP id u98mr12209613ioi.60.1455443391887; Sun, 14 Feb 2016 01:49:51 -0800 (PST) In-Reply-To: X-Content-Filtered-By: Mailman/MimeDel 2.1.21rc2 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102909 tracemalloc module may help you to investigate leaks. 2016/02/14 =E5=8D=88=E5=BE=8C4:05 "Paulo da Silva" : > I was unable to reproduce the situation using a simple program just > walking through all files>4K, with or without the seek, and computing > their shasums. > Only some fluctuations of about 500MB in memory consumption. > > I'll look at this when I get more time, taking in consideration the > suggestions here posted. > > For the time being, my work is done. With a small buffer size (16k) the > results produced were correct and no memory was leaked! > > If I can find any explanation (if not embarrassing :-) ), I'll post it > here. > > Thank you all. > Paulo > > -- > https://mail.python.org/mailman/listinfo/python-list >