From owner-freebsd-bugs@freebsd.org Thu Nov 19 21:02:01 2015 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EAA90A33ADE for ; Thu, 19 Nov 2015 21:02:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0A4711AB for ; Thu, 19 Nov 2015 21:02:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tAJL21Fj004978 for ; Thu, 19 Nov 2015 21:02:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 204688] out of swap space due to intensive disk IO Date: Thu, 19 Nov 2015 21:02:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bag@zurbagan.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2015 21:02:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204688 Bug ID: 204688 Summary: out of swap space due to intensive disk IO Product: Base System Version: 10.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: bag@zurbagan.org Created attachment 163344 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=163344&action=edit dmesg.boot + vmstat of testted systems Intensive disk IO leads to "out of swap space" at system without configured swap. Test system: 8Gb RAM, i7 CPU, 500G SSD (dmesg boot, vmstat outputs attached), NO SWAP, UFS filesystems (softupdates+trim flags enabled), fdisk+disklabel partitionig amd64 10.2-STABLE r290985M userland+kernel amd64 10.2 release kernel compiled from sources 10.2-STABLE r290985M userland + 10.2-STABLE r290985M userland How to reproduce: 1. Prepare files with total size more than RAM for i in `jot 16 101` do bs=1m count=1024 if=/dev/zero of=file_$i.bin done ls -la *bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:21 file_101.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_102.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_103.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_104.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_105.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_106.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_107.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_108.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_109.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_110.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_111.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_112.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_113.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_114.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_115.bin -rw-r--r-- 1 bag bag 1073741824 Nov 19 21:22 file_116.bin 2. Reboot to test system then run test script for i in file*.bin do dd bs=1m if=$i of=/dev/null done 3 amd64 10.2 release kernel: no problems 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.085321 secs (514904828 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.135202 secs (502876008 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.131729 secs (503695301 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.137902 secs (502240895 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.136251 secs (502629063 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.137830 secs (502257866 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.133230 secs (503340867 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.166784 secs (495546357 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.136592 secs (502548858 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.142595 secs (501140812 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.154938 secs (498270406 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.126926 secs (504832726 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.147977 secs (499885132 bytes/sec) 1024+0 records in 1024+0 records out 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.138070 secs (502201411 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.154765 secs (498310432 bytes/sec) 4 Reboot to amd64 10.2-STABLE r290985M then run test script 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.086252 secs (514675043 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.135337 secs (502844172 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.132365 secs (503545045 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.137970 secs (502224932 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.136101 secs (502664350 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.137171 secs (502412680 bytes/sec) 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 2.133041 secs (503385482 bytes/sec)