Re: Interactive tool for installing packages

2010-11-10 Thread Dan Nelson
, to see the recent improvements. > > * The amount of stuff downloaded by > cd /usr/ports/devel/git ; make fetch-recursive > is, shall we say, impressive. I use the devel/hg-git port to pull all the git trees I need to access using mercurial. -- Dan Nelson dnel...

Re: ugen claiming pcie device

2010-11-13 Thread Dan Nelson
irtual usb controller and device that you control the card with? -- Dan Nelson dnel...@allantgroup.com ___ 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: Namecache lock contention?

2011-01-28 Thread Dan Nelson
Name" that would > be connected to a lock. My guess would be: kern/vfs_cache.c:151 static struct rwlock cache_lock; kern/vfs_cache.c:152 RW_SYSINIT(vfscache, &cache_lock, "Name Cache"); The CACHE_*LOCK() macros.c in vfs_cache use cache_lock, so you've got lots of po

Re: reverse of getchar() read() open() fopen() ?

2011-02-11 Thread Dan Nelson
You might even be able to write functions that could be passed to funopen(). Then you'd have a regular FILE* that you could call with regular stdio functions. Getting the buffering right for good performance might get tricky, though. -- Dan Nelson dnel...@allantgroup.com ___

Re: usertime and systime

2011-03-16 Thread Dan Nelson
ry long time. http://lists.freebsd.org/pipermail/freebsd-hackers/2009-March/027918.html -- Dan Nelson dnel...@allantgroup.com Index: ps.1 === --- ps.1 (revision 219700) +++ ps.1 (working copy) @@ -587,6 +587,8 @@ symbolic process

Re: usertime and systime

2011-03-16 Thread Dan Nelson
In the last episode (Mar 16), Kostik Belousov said: > On Wed, Mar 16, 2011 at 12:56:14PM -0500, Dan Nelson wrote: > > In the last episode (Mar 16), Thiago Damas said: > > > Hi, > > > without procfs, there is a way to get usertime and systime from a > > > ru

Re: Why user time of the process depends on machine load?

2011-06-15 Thread Dan Nelson
oot in your BIOS, which you can use to determine how much of the single-process speedup is due to that. Unrelated but still interesting note on your particular CPU: http://www.passmark.com/forum/showthread.php?t=2256 -- Dan Nelson dnel...@allantgroup.com __

Re: Default value for UIDs

2011-06-28 Thread Dan Nelson
ople are just using "last entry + 1" when adding new ones, they should probably start filling the gaps instead. The 100s and 200s are pretty dense, but 350-399 only has 5 entries, 400-499 has 4, 600-699 has 7, 700-799 has 3, etc. -- Dan Nelson dnel...@allantgroup.com

Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586

2011-07-16 Thread Dan Nelson
> linked (uses shared libs), FreeBSD-style, not stripped > /host/sony/usr/src/usr.bin/who/who > fails with > Illegal instruction Were the crt*.o files on your fast machine also compiled with -march=i586 ? If you run gdb on the core file, can you determine

Re: Recommended amount of swap

2011-09-05 Thread Dan Nelson
gb or so. Anything more than 4GB of swap is probably never going to be used, and if it is used, you're just going to thrash your swap device. If you have 128GB of RAM and need to swap to disk, you desperately need more RAM, not swap :) -- Dan Nelson

Re: Recommended amount of swap

2011-09-05 Thread Dan Nelson
In the last episode (Sep 05), Eitan Adler said: > On Mon, Sep 5, 2011 at 3:48 PM, Dan Nelson wrote: > > In the last episode (Sep 05), Sean Hamilton said: > >> What is the state of the art for the recommended amount of swap in > >> FreeBSD? Both "normal" s

Re: Does anyone use nscd?

2011-10-05 Thread Dan Nelson
y. The nss module is a tiny plug that talks to nslcd using a simple protocol. It really reduces the socket count to your ldap server, and removes the potential namespace problems caused by dlopening libldap.so in every process. -- Dan Nelson dnel...@allantgroup.com ___

Re: Measuring memory footprint in C/C++ code on FreeBSD

2011-10-21 Thread Dan Nelson
with the KERN_PROC_PID flag, you can get the stats for a single processs by pid. If you want even more detail, you can look at the source to the procstat command, which uses some other calls to dump the vm map of processes. -- Dan Nelson dnel...@allantgroup.com ___

Re: _SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-23 Thread Dan Nelson
(1MB). PWD_STORAGE_MAX is only checked within that getpw() function, though, so it's possible that an nss library might return an even longer string to a get*_r call. It's up to you to decide what your own limit is :) -- Dan Nelson dnel...@allantgroup.com _

Re: _SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-24 Thread Dan Nelson
In the last episode (Oct 24), Christopher J. Ruwe said: > On Sun, 23 Oct 2011 19:10:34 -0500 > Dan Nelson wrote: > > In the last episode (Oct 23), Christopher J. Ruwe said: > > > I need to get the maximum size of an pwd-entry to determine the > > > correct buffersize

Re: _SC_GETPW_R_SIZE_MAX undefined in sysconf.c, what is correct value?

2011-10-25 Thread Dan Nelson
In the last episode (Oct 25), Christopher J. Ruwe said: > On Mon, 24 Oct 2011 15:42:10 -0500 > Dan Nelson wrote: > > In the last episode (Oct 24), Christopher J. Ruwe said: > > > On Sun, 23 Oct 2011 19:10:34 -0500 > > > Dan Nelson wrote: > > > > In the

Re: What is going on with ash / sh

2011-11-02 Thread Dan Nelson
88318 p0 S+ 0:00.00 sh xxx > 88320 p0 R+ 0:00.00 sh xxx > 88321 p0 R+ 0:00.00 sh xxx > > Can someone explain this ? What does your script do? If it contains subshells or pipelines, the main process will fork child processes to handle those. --

Re: What is going on with ash / sh

2011-11-02 Thread Dan Nelson
In the last episode (Nov 02), Dan Nelson said: > In the last episode (Nov 02), Mark Saad said: > > Hackers > > What is going on here, if I run the following shell script, what is > > the expected output . The script is named xxx > > > > #!/bin/sh >

Re: [clang] Build error on r232474 (and a few before, don't know exactly which)

2012-03-03 Thread Dan Nelson
> > -Brandon > > > ___ > 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" -- Dan Nelson dnel...@allantgroup.com ___ 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: Regarding core disable in FreeBSD 9

2012-04-13 Thread Dan Nelson
ut you can tell the scheduler not to use it, via the cpuset command. For example, "cpuset -s 1 -l 0,1" will change the mask for cpuset 1 (the default set) to only allow cpus 0 and 1. -- Dan Nelson dnel...@allantgroup.com ___ f

Re: Threaded 6.4 code compiled under 9.0 uses a lot more memory?..

2012-10-31 Thread Dan Nelson
t; would I be correct in guessing that they are more than likely for most of > these large blocks? Note that libmilter may do a lot of mallocs on its own, especially if you are examining the message body. There are also jemalloc tuning options that may lower total meory usage if you are

Re: lib for working with graphs

2012-11-28 Thread Dan Nelson
ph basics: BFS, > DFS, connected components, topological sort, etc Graphviz would be the most popular package for stuff like this, I think, and it includes a C API. It's licensed under the Eclipse Public License. http://www.graphviz.org/ http://www.graphviz.org/Gallery.php http://ww

Re: /bin/sh => STDIN & functions, var scope messing

2013-05-31 Thread Dan Nelson
uot; according to arbitrary ruling. On the other hand, zsh runs the last component of a pipeline in the parent shell. The usual model is "do work in pipeline, process results in final component", and being able to simply set variables there that can be used in the rest of the script is ver

Re: NFS based /usr prevents normal startup due to slow net init

2007-03-02 Thread Dan Nelson
by making sure you have portfast enabled on the Cisco for any non-switch ports, btw. Takes the port setup time down from 30 seconds to under 5. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.fre

Re: Problem with test(1)

2007-04-05 Thread Dan Nelson
ents: Exit false (1). 1 argument: Exit true (0) if $1 is not null; otherwise, exit false. ... Unary operators shouldn't get parsed as such unless there are two arguments. > http://www.marcuscom.com/downloads/test.c.diff -- Dan Nelson [EMAIL PROTECTED] __

Re: Discovering list of open files from "kernel level" without using utils like lsof

2007-04-09 Thread Dan Nelson
ow. Take a look at how /usr/bin/fstat does it. There is apparently a "kern.file" sysctl that holds the open file table, but fstat digs through kernel memory. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailin

Re: More questions about BDB

2007-05-20 Thread Dan Nelson
DB is built into libc and is used for the hashed passwd & termcap databases. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, s

Re: nss_ldap without nscd or cached ?

2007-05-24 Thread Dan Nelson
o grant the anonymous user read access to user/group names and group membership attributes. That way you can do simple things like name->uid lookups without having to bind at all. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@f

Re: Using userland library in Kernel

2007-08-08 Thread Dan Nelson
already. It's hidden under the PPP_DEFLATE kernel option (the source is in sys/net/ppp_deflate.c). The functions are all prefixed with z_, but apart from that it works the same as userland zlib. -- Dan Nelson [EMAIL PROTECTED]

Re: memory pool, rfc

2007-10-31 Thread Dan Nelson
your method and compare it to the existing gzip and lzjb algorithms. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Some FreeBSD performance Issues

2007-11-08 Thread Dan Nelson
ec on my non-idle dual pIII-900 system. Try truss'ing your program as it runs; maybe the program is doing some extra syscalls you aren't aware of? -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: select

2008-01-03 Thread Dan Nelson
In the last episode (Jan 03), Metin KAYA said: > Hi all, > > How select(2) will behave if I give the "utimeout" parameter as > NULL? >From the man page: If timeout is a null pointer, the select blocks indefinitely. http://www.freebsd.org/cgi/man.cgi?quer

Re: A (perhaps silly) kqueue question

2008-03-14 Thread Dan Nelson
or placing in a program and using truss to print the result), but it has rotted. I'm attaching it in case anyone wants to make it work again. Since you got EOF status for both the read and write halves of the socket, why not just close the fd? From my reading of the manpages, unless you spe

Re: OpenBSD sdiff Question

2008-03-17 Thread Dan Nelson
-v" today? > > I have to agree with this. > > I will submit the port without -v/--version > and worse comes to worse, add it in later if enough people complain. On the other hand, some programs that are contributed sources or are developed outside the FreeBS

Re: binary file within a shell script

2008-05-08 Thread Dan Nelson
file generated by /usr/bin/gzexe; that's one way to do it (basically, determine the number of lines in your shell script, append your binary file to the end of the script, and use tail to extract only the binary file to a tempfile). -- Dan Nelson

Re: Overcommit and calloc()

1999-07-19 Thread Dan Nelson
rk a child to bzero it. If the child dies, unmmap and return NULL. If the child succeeds, use the memory. This memory won't be freeable with malloc(), though. -Dan Nelson dnel...@emsphone.com To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message

Re: file(1) Magdir candidate: wintendo

1999-07-26 Thread Dan Nelson
like Quake? How about just calling it "games" ? -- Dan Nelson dnel...@emsphone.com To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message

Re: bftp(1)

1999-08-17 Thread Dan Nelson
per re-implementing it is at http://renoir.vill.edu/~yhang . It looks like ports/ftp/ncftp3 has all the features of bftp (scheduled background transfers, auto-resume, multiple file xfers) except it doens't email the user then the transfer is done. -- Dan Nelson dnel...@emsphone.com

Re: font edit tools

1999-08-22 Thread Dan Nelson
were a lot of tools floating around. I like one called Font Mania!; the author doesn't seem to have a web presence, but an URL is http://jconroy.dragonfire.net/zzt/utilities/Fm.zip -- Dan Nelson dnel...@emsphone.com To Unsubscribe: send mail to majord...@freebsd.org with &quo

Re: X mailers (was Re: ANNOUNCE: Linux ABI/SDK standards for OpenGL/Mesa)

1999-09-09 Thread Dan Nelson
P-provided pop account. (Costs less that way, with my current > ISP.) If your ISP runs sendmail (possibly other MTAs), you can use the user+det...@host.com syntax. All mail is sent to the "user" mailbox, but filters like procmail see the "detail" portion too, and can fi

Re: Bug in dd seeking beyond 2G

1999-09-15 Thread Dan Nelson
ision 1.17 date: 1999/06/19 19:49:32; author: green; state: Exp; lines: +25 -21 Miscellaneous dd(1) changes: mainly fixing variable types (size_t, ssize_t, off_t, int, u_int64_t, etc.). dd(1) should now work properly with REALLY big amounts of data. Should be a -stable candidate by now (3 months o

Re: How to get a thread ID?

2010-06-03 Thread Dan Nelson
ave a testcase that shows otherwise? GDB might just enumerate the currently active threads starting from 1. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freeb

Re: sysctl way too slow

2010-07-14 Thread Dan Nelson
x is not just caching the data? I know of at least > one system where it takes more than 100ms to query the battery state due > to extremely slow hardware, I wouldn't be surprised if you can do worse. I have an old Dell laptop where it takes almost a full second to fetch battery data v

Re: adding sysctls

2008-06-18 Thread Dan Nelson
In the last episode (Jun 18), Zane C.B. said: > Any one know of any recent documentation for adding a sysctl to a > kernel module for FreeBSD 6 and 7? man 9 sysctl -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org m

Re: Securelevels

2008-06-28 Thread Dan Nelson
ng newfs(8) while the system is multi- > user. # truss kgdb < /dev/null |& grep /dev/mem open("/dev/mem",O_RDONLY,00) = 4 (0x4) # Read-only opens of /dev/mem are allowed. "kgdb -w" should fail, however. -- Dan Nelson

Re: IPFW uid logging...

2008-09-08 Thread Dan Nelson
failed packet that had to go through a uid check on the way to the deny rule. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: IPFW uid logging...

2008-09-08 Thread Dan Nelson
In the last episode (Sep 09), Daan Vreeken said: > On Monday 08 September 2008 22:03:29 Dan Mahoney, System Admin wrote: > > On Mon, 8 Sep 2008, Dan Nelson wrote: > > > In the last episode (Sep 08), Dan Mahoney, System Admin said: > > >> I have the following ru

Re: Error: Can't find libjava.so

2008-09-14 Thread Dan Nelson
ystem in folder "/usr/local/Diablo-jre1.6.0/lib/amd64/libjava.so Are you running an amd64 winpower binary? If not, you'll probably need to install an x86 java. You can't mix libraries for different architectures. -- Dan Nelson [EMAIL PROTECTED] __

Re: FreeBSD and ISCSI, Strange Problem

2008-10-17 Thread Dan Nelson
d up with a horribly-corrupted filesystem, since neither one is aware of changes the other makes. You would need a shared-storage cluster filessytem to be able to do that (or mount the volume read-only on both servers). Mount the filesystem on one server only, then access it via NFS from the other.

Re: Pipes, cat buffer size

2008-10-18 Thread Dan Nelson
m can > buffer enough data for it. Why not keep reading until you reach your desired compression block size? Bzip2's default blocksize is 900k, for example. > b) Is there any objection to the following patch to cat: It might be simpler to just use "d

Re: Pipes, cat buffer size

2008-10-18 Thread Dan Nelson
In the last episode (Oct 19), Ivan Voras said: > Dan Nelson wrote: > > In the last episode (Oct 18), Ivan Voras said: > >> I'm working on a program that's intended to be used as a "filter", > >> as in "something | myprogram > file".

Re: Pipes, cat buffer size

2008-10-18 Thread Dan Nelson
In the last episode (Oct 19), Ivan Voras said: > 2008/10/19 Dan Nelson <[EMAIL PROTECTED]>: > > In the last episode (Oct 19), Ivan Voras said: > >> Of course. But that's not the point :) From what I see (didn't > >> look at the code), Linux for exampl

Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit binaries?

2008-10-23 Thread Dan Nelson
c to dynamic-linked /bin and /sbin, some shared libraries are needed during the boot process. Those libraries live in /lib, and since there are no 32-bit binaries required to boot a 64-bit system, there is no need for a /lib32. -- Dan Nelson [EMAIL PROTECTED] _

Re: zfs & waiting on zio->io_cv

2008-10-24 Thread Dan Nelson
er of simultaneous I/Os ZFS will try to send to each disk, which will let your reads compete a little better with other I/O. On ATA or SATA disks, you might want to set it to 2. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebs

Re: Is chflags' "nodump + sunlnk" = "uchg"

2008-11-12 Thread Dan Nelson
ump 0 Nov 12 17:42 a -rw-r--r-- 1 root wheel uchg 0 Nov 12 17:42 b # -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Is chflags' "nodump + sunlnk" = "uchg"

2008-11-13 Thread Dan Nelson
In the last episode (Nov 13), Charles Darwin said: > On 12-Nov-08, at 6:43 PM, Dan Nelson wrote: > > In the last episode (Nov 12), Charles Darwin said: > >> Hi all, > >> > >> Title is the question actually: Is chflags' "nodump + sunlnk" = > &g

Re: How process size is calculated? Is it always based on the current highest available address in memory space?

2008-12-29 Thread Dan Nelson
ntf("munmap B\n"); munmap(b, 64 * 1024 * 1024); system(cmd); return 0; } -- Dan Nelson dnel...@allantgroup.com ___ 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: threaded, forked, rethreaded processes will deadlock

2009-01-08 Thread Dan Nelson
ly > allowed to call async-signal-safe functions in the child forked from > a threaded process. If you are trying to do anything other than > that, it may or may not work on FreeBSD, but it is not guaranteed and > is not portable. The Rationale section of the pthread_atfork()

Re: portupgrade spurious skips

2009-02-26 Thread Dan Nelson
e got ZFS, you can snapshot your filesystems, and if portupgrade fails, roll back to the snapshot and do it again to see if it happens on the same port a second time. Or if you know ruby, you could instrument the code that checks for port build errors and see if it's got a bug in it... --

Re: CPU user/kernel time given the PID

2009-03-08 Thread Dan Nelson
ing so much trouble finding what you were looking for, and then I realized I have a patch that I have never submitted a PR for: the addition of "systime" and "usertime" ps keywords :) It simply reads the rusage struct, and returns the same values that getrusage() does. --

Re: rebuilding libpcap

2009-03-16 Thread Dan Nelson
ible by calling changed functions :( > What I do wrong ? /usr/src/contrib is a repository of 3rd-party source trees, and they're not meant to be built from. Try running your "make ; make install" in /usr/src/lib/libpcap instead. -- Dan Nelso

Re: working of syscall handling

2009-04-08 Thread Dan Nelson
p.org/onlinepubs/9699919799/functions/readlink.html > I will be very thankful if you can help me with it. > > #include > > int readlink(void *a, void *b) > { > exit(0); > } > > int main(int argc, char **argv) > { > printf(&q

Re: Garbled kernel messages on shutdown

2009-04-17 Thread Dan Nelson
at a time to its output callback function. Maybe a mutex can be added inside kvprintf if TOCONS is set in pca.flags? So instead of malloc'ing a buffer, just make the 2nd kvprintf call wait for the first to finish. -- Dan Nelson dnel...@allantgroup.com

Re: Monitoring throughput of PCIe lanes

2009-06-01 Thread Dan Nelson
command that can print a huge number of low-level counters, including PCI DMA counts. If it's supported under OpenSolaris it should be easy to check and see whether it's dependant on Sun hardware or works with any PC (just boot it up and run

Re: top shows that multithreaded program uses 19623.14% CPU

2009-06-13 Thread Dan Nelson
d individually. Then you get accurate numbers (but you have to manually sum up the threads usage if you want to see the total %CPU for an entire process). -- Dan Nelson dnel...@allantgroup.com ___ freebsd-hackers@freebsd.org mailing

Re: Can I bind POSIX thread to cpu core?

2009-06-28 Thread Dan Nelson
n("setaffinity failed"); /* Do CPU-intensive stuff here */ return 0; } -- Dan Nelson dnel...@allantgroup.com ___ 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: Getting running time of child

2009-11-19 Thread Dan Nelson
> > /usr/include/sys/user.h. > > Unfortunately, as far as I can see the kinfo_proc structure only contains > the sum of user time and system time and not the two values separately, > or have I missed something? Take a look at the the ki_rusage struct inside kinfo_proc. --

Re: scp more perfectly fills the pipe than NFS/TCP

2009-12-19 Thread Dan Nelson
uot;, etc requests one after another, so a high-latency connection will take a performance hit due to the latency in issuing each command. According to the mount_nfs manpage, it looks like there is some prefetching that can be enabled with the "-a ##

Re: scp more perfectly fills the pipe than NFS/TCP

2009-12-20 Thread Dan Nelson
In the last episode (Dec 21), Zaphod Beeblebrox said: > On Sun, Dec 20, 2009 at 12:27 AM, Dan Nelson wrote: > > In the last episode (Dec 19), Zaphod Beeblebrox said: > >> Here's an interesting conundrum.  I don't know what's different between > >> the TC

Re: pthread_{mutex,cond} & fifo/starvation/scheduling policy

2010-01-19 Thread Dan Nelson
ome sort, and only lock the mutex when pushing/popping elements. Then worker processes can run without holding the mutex, and will be fairly scheduled by the kernel. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-hackers@freebsd.or

Re: ps "time" field jumps backward

2010-02-05 Thread Dan Nelson
ee one thread with a CPU value of "8.08" (or so), and other values for the rest. Ideally, top and ps would total up all the per-thread CPU counts when displaying the per-process numbers, but it doesn't seem to. -- Dan Nelson dnel...@allantgroup.com

Re: kernel malloc() and free()

2010-03-01 Thread Dan Nelson
e allocated or free. I expected to find a bitmap somewhere that malloc() sets and free() clears, but I don't see it. Maybe some kernel hacker can explain it better :) Regardless, the size of the allocation at this point isn't important, since you know all the items in th

Re: unable to offline a failing drive in a zfs RAIDZ

2010-03-01 Thread Dan Nelson
equested config: NAMESTATE READ WRITE CKSUM dummy DEGRADED 0 0 0 raidz1DEGRADED 0 0 0 md1 ONLINE 0 0 0 md2 OFFLINE 0 0 0 md3 ONLINE 0 0 0

Re: VMDirectPath with FreeBSD 8 VM under ESXi 4.0

2010-03-09 Thread Dan Nelson
msg.panic.requestSupport.withLogAndCore] Please > request support and include the contents of the log file and core > file. [msg.panic.requestSupport.vmSupport.vmx86] > Sep 19 05:19:30.296: vcpu-0| To collect data to submit to VMware > support, run "vm-support". > Sep

Re: there is a way to avoid strict libraries linking?

2010-04-14 Thread Dan Nelson
(0x7fa047716000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x7fa04759b000) libpng.so.3 => /usr/lib64/libpng.so.3 (0x7fa04745f000) libz.so.1 => /lib64/libz.so.1 (0x7fa04734b000) libart_lgpl_2.so.2 => /usr/lib64/libart_lgpl_2.so.2 (0x7fa047234

Re: there is a way to avoid strict libraries linking?

2010-04-22 Thread Dan Nelson
'd sure vote for an audit of > this behavior as a summer of code project. I don't think the porter's handbook mentions the DEPENDS_* comparison operators at all, so unless you read (and understood) the ${deptype:L}-depends target in bsd.port.mk, you might not know it existed. --

Re: there is a way to avoid strict libraries linking?

2010-04-22 Thread Dan Nelson
In the last episode (Apr 22), Dan Nelson said: > In the last episode (Apr 22), Steve Franks said: > > (such as myself) incorrectly pointing a port at libpng.5 instead of any > > libpng, or libpng >= 5. Once the ports tree is 'poisoned' in this > > fashion, there

Re: large master.passwd

1999-05-14 Thread Dan Nelson
on't remember whether fsync flushes metadata though) -Dan Nelson dnel...@emsphone.com To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message

Re: ifconfig: changing mac address

1999-05-14 Thread Dan Nelson
the next step would be to make the kernel realize that two cards ifconfig'd with the same MAC address are meant to be bonded together as one route (lots of switches support this). I have some machines that I'd love to be able to get 20MB/sec bandwidth between transparently. -Dan

Re: ifconfig: changing mac address

1999-05-14 Thread Dan Nelson
In the last episode (May 15), Greg Lehey said: > > And the next step would be to make the kernel realize that two cards > > ifconfig'd with the same MAC address are meant to be bonded together as > > one route (lots of switches support this). I have some machines that > > I'd love to be able to ge

Re: ifconfig: changing mac address

1999-05-14 Thread Dan Nelson
In the last episode (May 15), Greg Lehey said: > OK, now maybe I'm missing something here. But an Ethernet address is > used to identify a board. Arp binds it to an IP address. An IP > address is bound to a network. So if you're on a different network, > you get a different IP address. Why do

Re: Seti project / stats reset, new version available

1999-05-18 Thread Dan Nelson
to idprio the rc5client, but within a day or do the machine would lock up. Rc5client would get a lock on the root of the filesystem at idprio, and if there was another process running at 100% CPU, rc5client would never get a chance to unlock, causing all the other processes on the system to hang

Re: timeconsuming processes on FreeBSD 3.1

1999-05-19 Thread Dan Nelson
t loop it'll never exit. You can check to see if this is the problem by running truss -p 39448 . Check to see if it's doing the same read() or write() over and over. Tin used to have this bug, but I thought it was fixed long ago. Lynx shoudln't have any problems either.

Re: a two-level port system? (fwd)

1999-05-31 Thread Dan Nelson
, etc. /usr/share/examples/cvsup/cvs-supfile is a good starting point. -Dan Nelson To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message

Re: Oracle OCI code on FreeBSD

1999-06-09 Thread Dan Nelson
ails > would be helpful, but if anyone is at all interested in the I would > be happy to supply more :). Install the linux_devel port and resign yourself to building Linux executables whenever you have to talk to Oracle. -Dan Nelson dnel...@emsphone.com To Unsubscribe: send ma

Re: What is FTW?

1999-06-10 Thread Dan Nelson
y routine named ftw() (XPG4 standard) in AIX and HP-UX. However, I > can not find the same routine in FreeBSD manual pages. Maybe it is not > supported by FreeBSD. There is a set of fts* funtcions in FreeBSD (man fts); it looks like the options are very similar. -Dan Nelson

Re: [t...@caida.org: Re: [MRTG-DEV] CDEF's with LT and IF in .42]

1999-06-30 Thread Dan Nelson
to mask the condition, and one to restore the previous mask. If you want to completely ignore floating point errors, call fpsetmask(0) at the top of main(). I scanned the mailinglists and the thread that covers this issue most completely is http://www.freebsd.org/cgi/mid.cgi?id=199710101907.oaa09.

Re: CPU utilization

2005-11-09 Thread Dan Nelson
mpletely the wrong mailing list for this question, but take a look at the getrusage() function. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To uns

Re: Filesystem monitoring question

2005-11-18 Thread Dan Nelson
is could be either timestamp based (file not modified in 60 seconds == done), or if you know the file format, you may be able to validate the contents (check for zipfile end-of-file marker, etc). -- Dan Nelson [EMAIL PROTECTED] ___ freebs

Re: [PATCH] nsswitch extensions + caching

2005-12-06 Thread Dan Nelson
> > It gives us the ability use modules to provide arbitrary backends for a > variety of interfaces to system databases. For instance getpw*(), > gethost*(), etc. Michael's patch itself adds caching to our nsswitch implementation, which dramatically improves performance o

Re: sysctl, HW_PHYSMEM, and crippled gcc

2005-12-08 Thread Dan Nelson
ry. On all my FreeBSD boxes from 128MB to 1GB of RAM, I get the exact same heuristic values as you, so I'm not sure whether the code works at all. I seem to remember having the opposite problem on a memory-limited machine which insisted in allocating a relatively huge percentage of RAM for a

Re: sysctl, HW_PHYSMEM, and crippled gcc

2005-12-09 Thread Dan Nelson
of physmem; > % 14 static int mib[] = { CTL_HW, HW_PHYSMEM }; > % 15 static size_t miblen = sizeof(mib) / sizeof(mib[0]); > % 16 > % 17 if (sysctl(mib, miblen, &physmem, &len, NULL, 0) != 0) > % 18 err(1, "sysctl

Re: Does tcpdump2xplot work?

2005-12-13 Thread Dan Nelson
I've traced down the issue: tcpdump now creates lines like: > > IP > ... > > And tcpdump2xplot doesn't want to see that 'IP' field. I'll try to get a > patch cobbled... You'll probably get better results using the tcptrace por

Re: easy question about kill command

2005-12-16 Thread Dan Nelson
still depends on what daemon you're talking about. syslogd, for example, re-reads /etc/syslog.conf and reloads its logfiles on SIGHUP. Luckily, most base daemons are started from their own /etc/rc.d/* scripts which know how that particular program works, so y

Re: Number of kevents registered in kqueue

2005-12-16 Thread Dan Nelson
r, and what the kernel thinks you're waiting for :) -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: (no subject)

2005-12-19 Thread Dan Nelson
erator" user has read access to the raw device files that filesystems are mounted on. That's how it can do backups with the dump command. It has no special access to mounted filesystems themselves. -- Dan Nelson [EMAIL PROTECTED] _

Re: copy directory structure

2005-12-21 Thread Dan Nelson
. -type d | tar Tcfn - - | ( cd /otherpath ; tar xf - )" -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: using get_system_info() - obtaining system load averages

2006-01-09 Thread Dan Nelson
l to get the load average. A simpler way is to just call the getloadavg() function; see its manpage for more info. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/fre

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Dan Nelson
nd fix addresses the problem that with a single dd, you are either reading or writing. If you pipe the first dd into a second one, it'll let you run at the max speed of the slowest device. dd if=/dev/ad2 conv=noerror,sync bs=64k | dd of=/dev/ad3 bs=6

Re: FreeBSD Real Mode interface

2006-01-30 Thread Dan Nelson
inside): > > http://kaya.nov.net/frol/patches/atitvout-0.4-bsd2.diff If this is anything like vm86 mode, check out the i386_vm86 manpage. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.free

  1   2   3   4   5   >