pcpustat fails on some systems with memory allocation error. Fix: Allocate memory for maximum supported CPUs, rather than the number of physical CPUs. shar file follows: How-To-Repeat: Running pcpustat without arguments generated the error: pcpustat: sysctl(kern.cp_times...) failed: Cannot allocate memory
Looks like the shar file got messed up as an attachment. I'll include it here. I expect to be the maintainer for this port. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/sysutils/pcpustat # /usr/ports/sysutils/pcpustat/Makefile # /usr/ports/sysutils/pcpustat/license.txt # /usr/ports/sysutils/pcpustat/pkg-descr # /usr/ports/sysutils/pcpustat/distinfo # echo c - /usr/ports/sysutils/pcpustat mkdir -p /usr/ports/sysutils/pcpustat > /dev/null 2>&1 echo x - /usr/ports/sysutils/pcpustat/Makefile sed 's/^X//' >/usr/ports/sysutils/pcpustat/Makefile << '302e5a411916f3935d86b0b641b7a78f' X# New ports collection makefile for: pcpustat X# Date created: 13 July 2010 X# Whom: sterling X# X# $FreeBSD$ X# X XPORTNAME= pcpustat XPORTVERSION= 1.2 XCATEGORIES= sysutils XMASTER_SITES= http://chipstips.com/download/ X XMAINTAINER= sterling@camdensoftware.com XCOMMENT= Per-CPU usage statistics X XMAN1= pcpustat.1 X XUSE_BZIP2= yes XPLIST_FILES= bin/pcpustat X XLICENSE= OWL XLICENSE_NAME= Open Works License XLICENSE_PERMS= none XLICENSE_FILE= license.txt X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin X ${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1 ${MANPREFIX}/man/man1 X X.include <bsd.port.mk> 302e5a411916f3935d86b0b641b7a78f echo x - /usr/ports/sysutils/pcpustat/license.txt sed 's/^X//' >/usr/ports/sysutils/pcpustat/license.txt << 'de66c239683344e0dfa234b63a4e44c7' X# Open Works License X XThis is version 0.7 of the Open Works License. X X## Terms X XPermission is hereby granted by the copyright holder(s), author(s), Xand contributor(s) of this work, to any person who obtains a copy of Xthis work, in any form, to reproduce, modify, distribute, publish, Xsell, use, or otherwise deal in the licensed material without Xrestriction, provided the following conditions are met: X X1. Redistributions, modified or unmodified, in whole or in part, must X retain the above license notice, this list of conditions, and the X following disclaimer. X X2. Redistributions, modified or unmodified, in whole or in part, must X retain any applicable notices of attribution and copyright. X XNo warranty or guarantee is implied, or should be inferred, by this Xlicense or the act of distribution under the terms of this license. XThis license does not grant permission to use the trade names, Xtrademarks, service marks, product names, or other identifications Xused by the licensor except as required for reasonable and customary Xuse in reproducing, and describing the origin or use of, the work. de66c239683344e0dfa234b63a4e44c7 echo x - /usr/ports/sysutils/pcpustat/pkg-descr sed 's/^X//' >/usr/ports/sysutils/pcpustat/pkg-descr << '1f8025243f65c6b2f6dde36bc07a8982' Xpcpustat provides per-cpu usage statistics in a format that can be piped. X XWWW: http://chipstips.com/?tag=c_pcpustat 1f8025243f65c6b2f6dde36bc07a8982 echo x - /usr/ports/sysutils/pcpustat/distinfo sed 's/^X//' >/usr/ports/sysutils/pcpustat/distinfo << 'cbf57e2ed07b42777baf391d819624c9' XMD5 (pcpustat-1.2.tar.bz2) = 679b67754383a768091be02b7af8f5ab XSHA256 (pcpustat-1.2.tar.bz2) = a520f172799508693f7665c5da5a971c8a582652753d497664cac1d2fe782ac0 XSIZE (pcpustat-1.2.tar.bz2) = 3974 cbf57e2ed07b42777baf391d819624c9 exit -- Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com | http://chipsquips.com
Responsible Changed From-To: freebsd-ports-bugs->pgollucci I will take it
pgollucci 2010-09-13 02:10:09 UTC FreeBSD ports repository Modified files: sysutils Makefile Added files: sysutils/pcpustat Makefile distinfo pkg-descr sysutils/pcpustat/files license.txt Log: pcpustat provides per-cpu usage statistics in a format that can be piped. WWW: http://chipstips.com/?tag=c_pcpustat PR: ports/149040 Submitted by: sterling Revision Changes Path 1.1227 +1 -0 ports/sysutils/Makefile 1.1 +30 -0 ports/sysutils/pcpustat/Makefile (new) 1.1 +3 -0 ports/sysutils/pcpustat/distinfo (new) 1.1 +25 -0 ports/sysutils/pcpustat/files/license.txt (new) 1.1 +3 -0 ports/sysutils/pcpustat/pkg-descr (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed, Thanks!