Re: a sysctl for process binary osreldate
On Sat, 17 Mar 2012 22:29:01 +0100 Jilles Tjoelker wrote: JT> On Sat, Mar 17, 2012 at 09:30:05PM +0200, Mikolaj Golub wrote: >> I added osrel output to procstat -b option: >> kopusha:~% procstat -b 2975 >> PID COMMOSREL PATH >> 2975 emacs 101 /usr/local/bin/emacs-23.3 >> Would this be ok or someone see a better way? JT> Hmm, this means that procstat is not supposed to be used from scripts as JT> it is apparently OK to change its output format like this? Yes, breaking output compatibility worries me too. Although I already broke it recently for '-s' option, adding umask output. Let me cite Robert (taken from our then discussion about procstat umask output): > if we add too many arguments we'll start looking like ps(1), whereas the > point of procstat(1) is that it's *not* ps(1) :-). That is why I decided to not introduce yet another option here too at the cost of breaking compatibility. But I am open for any suggestions. JT> In some ways, querying via ps would be better for scripts since it JT> allows things like JT> ps -p PID -o KEYWORD= JT> which do not need additional parsing except that many of the newer JT> things in procstat do not have ps keywords. JT> -- JT> Jilles Tjoelker -- Mikolaj Golub ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
BUG: REL 9.0 - MD malloc of custom sector size
man mdconfig -S sectorsize to use for malloc backed device I want to create MD device, with sector size of 4 Kb. It is CRITICAL to NOT append ANY suffixes, when specifing size, via '-s' flag in order to use sectors, to set it's size. # mdconfig -a -t malloc -S 4096 -s 32768 This should created dev of 128 Mb in size. 32768 sectors * 4 Kb each = 131072 Kb = 128 Mb Not! It created dev of 16 Mb in size, because sector size remained at 512 bytes. And look what 'diskinfo' has to say/lie ... # diskinfo -v md0 md0 4096# sectorsize 16777216# mediasize in bytes (16M) 4096# mediasize in sectors 0 # stripesize 0 # stripeoffset False lines: # sectorsize # mediasize in sectors (doesn't match '-s 32768') Does anyone has any advice of creating image / file(vnode) of custom sector sizes (2k, 4k, 8k) Thanks in advance. Domagoj Smolčić ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
issues about FreeBSD 2012 Gsoc ideas
Hi, I am student from China.I am looking forward to joining the Gsoc 2012 and I am very very interested in this idea [1].As you know,the FreeBSD organization has been accepted into Google Summer of Code 2012 [2],so I really want to join it. I am a intern working as a Linux kernel-qe,and I am very interested in Timer/Power-Management,so I really want to join this project.How can I join this project ? Could you please give me some suggestions ? Many Many thanks! [1] http://wiki.freebsd.org/IdeasPage#CPU_online.2BAC8-offline_project_.28GSoC.29 [2] http://www.google-melange.com/gsoc/org/google/gsoc2012/freebsd -- Best Regards, Dong Zhu -- http://bluezd.info -- ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: BUG: REL 9.0 - MD malloc of custom sector size
On Sun, 18 Mar 2012 14:01:39 +0100 rank1see...@gmail.com wrote: > man mdconfig > > -S sectorsize to use for malloc backed device > > > I want to create MD device, with sector size of 4 Kb. > > It is CRITICAL to NOT append ANY suffixes, when specifing size, via > '-s' flag in order to use sectors, to set it's size. # mdconfig -a -t > malloc -S 4096 -s 32768 > > This should created dev of 128 Mb in size. > 32768 sectors * 4 Kb each = 131072 Kb = 128 Mb > Not! It created dev of 16 Mb in size, because sector size remained at > 512 bytes. From mdconfig 8 "Size is the number of 512 byte sectors unless ..." Looks to me like it's doing what it said it would. BTW are you sure you want to use "-t malloc". This keeps the files (even the deleted ones) in memory unconditionally while ordinary process memory is paged-out. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Reigning in disk cache buffer hogs
amd64 4 GiB nVidia nForce CK804 (aka nforce4-ultra), SiI3132, JMB363 sata disks FreeBSD 8.2 FFS/SU Problem: I/O to one disk can fill up the disk buffer cache, starving other processes of disk I/O. If the other processes are logging real time data (from a closed source "black box"), then data is lost. Each process has its own private disk to minimise latency due to seeking and such, but that isn't sufficient to prevent the problem. It is always the onboard nforce4-ultra controller that causes the problem. The expansion card controllers never cause the problem. The onboard nforce4-ultra controller is supported by ata(4). The expansion card controllers are supported by ahci(4) and siis(4). The onboard nforce4-ultra controller is much faster than the expansion card controllers, except that ata doesn't support NCQ, so the nforce has a serious bottleneck writing. Is there something about NCQ other than the obvious performance improvement that would explain why the NCQ controllers never have the problem? What sort of miracle would it take to get NCQ support for the nforce4-ultra controller? Linix has had NCQ support since 2006. Is there some knob to control reserving a few buffers per disk to prevent one disk from hogging all the buffer cache? ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Participate FreeBSD 2012 Gsoc ideas CPU online/offline project
Hi, I am student from China.I am looking forward to joining the Gsoc 2012 and I am very very interested in this idea [1]. I am a intern working as a Linux kernel-qe,and I am very interested in Timer/Power-Management,so I really want to join this project.But I do not know how to start,How can I join this project ? Could you please give me some suggestions ? Many Many thanks! [1] http://wiki.freebsd.org/IdeasPage#CPU_online.2BAC8-offline_project_.28GSoC.29 -- Best Regards, Dong Zhu WebSite: http://bluezd.info ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"