From owner-freebsd-questions@FreeBSD.ORG Thu Jan 26 10:08:46 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C88F16A422 for ; Thu, 26 Jan 2006 10:08:46 +0000 (GMT) (envelope-from patrick.proniewski@univ-lyon2.fr) Received: from smtp.univ-lyon2.fr (smtp.univ-lyon2.fr [159.84.143.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC3CD43D45 for ; Thu, 26 Jan 2006 10:08:45 +0000 (GMT) (envelope-from patrick.proniewski@univ-lyon2.fr) Received: from localhost (localhost [127.0.0.1]) by smtp.univ-lyon2.fr (Postfix) with ESMTP id 20642282D2D6 for ; Thu, 26 Jan 2006 11:08:44 +0100 (CET) Received: from smtp.univ-lyon2.fr ([127.0.0.1]) by localhost (smtp.univ-lyon2.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27432-07 for ; Thu, 26 Jan 2006 11:08:37 +0100 (CET) Received: from [159.84.142.75] (dhcp-159-84-142-75.univ-lyon2.fr [159.84.142.75]) by smtp.univ-lyon2.fr (Postfix) with ESMTP id 62076282D2BC for ; Thu, 26 Jan 2006 11:08:37 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v746.2) Content-Transfer-Encoding: quoted-printable Message-Id: <6F2F4E06-712A-4E3D-9124-7AC7E1B964BD@univ-lyon2.fr> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed To: freebsd-questions@freebsd.org From: Proniewski Patrick Date: Thu, 26 Jan 2006 11:09:01 +0100 X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: amavisd-new at univ-lyon2.fr Subject: truss and procfs strange problem. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2006 10:08:46 -0000 Hello, I experience a strange problem with truss on FreeBSD 5.4 p8 : $ truss ls truss: cannot open /proc/4509/mem: No such file or directory $ truss ls truss: PIOCWAIT: Input/output error of course, PROCFS is mounted : $ df procfs Filesystem 1K-blocks Used Avail Capacity Mounted on procfs 4 4 0 100% /proc but, if I count `ls -1 /proc/ | wc -l` the result will always be limited to 128, even if I have more than 200 lines in ps aux output : $ ls -1 /proc/ | wc -l 128 $ ps aux | wc -l 207 It really looks like a power of 2 limit, this is very strange. The box is a PIV 3GHz, with HTT enabled =20 (machdep.hyperthreading_allowed=3D1). Complete sysctl available at =20 , Kernel config below. $ uname -a FreeBSD my_box 5.4-RELEASE-p8 FreeBSD 5.4-RELEASE-p8 #0: Sun Oct 16 17:12:30 CEST 2005 patpro@my_box:/usr/obj/usr/src/sys/PATPRO-20050829 i386 # egrep -v ^# /usr/src/sys/i386/conf/PATPRO-20050829 machine i386 cpu I686_CPU ident PATPRO-20050829 options SCHED_4BSD options INET options FFS options SOFTUPDATES options UFS_ACL options UFS_DIRHASH options MD_ROOT options NFSCLIENT options NFSSERVER options NFS_ROOT options MSDOSFS options CD9660 options PROCFS options PSEUDOFS options GEOM_GPT options COMPAT_43 options COMPAT_FREEBSD4 options SCSI_DELAY=3D15000 options KTRACE options SYSVSHM options SYSVMSG options SYSVSEM options _KPOSIX_PRIORITY_SCHEDULING options KBD_INSTALL_CDEV options AHC_REG_PRETTY_PRINT options AHD_REG_PRETTY_PRINT options ADAPTIVE_GIANT options ALTQ options ALTQ_CBQ options ALTQ_RED options ALTQ_RIO options ALTQ_HFSC options ALTQ_PRIQ options ALTQ_NOPCC options SMP options MPTABLE_FORCE_HTT device apic device isa device eisa device pci device fdc device ata device atadisk device ataraid device atapicd device atapifd device atapist options ATA_STATIC_ID device atkbdc device atkbd device psm device vga device splash device sc device agp device npx device pmtimer device sio device ppc device ppbus device ppi device em device miibus device fxp device ex device loop device mem device io device random device ether device tun device pty device md device bpf device uhci device ohci device ehci device usb device ugen device uhid device ukbd Patrick PRONIEWSKI --=20 Administrateur Syst=E8me - SENTIER - Universit=E9 Lumi=E8re Lyon 2