Re: What's the state of AF-4Kn support?

2013-09-23 Thread Dan Nelson
of a 4TB disk. Unfortunately, since both GPT and MBR work off of block offsets, partitions created in one mode won't work in the other, so you can't just swap a disk in and out of the enclosure without (carefully) repartitioning. -- Dan Nelson dnel...@allantgroup.com

Re: FreeBSD SNMP OID Question

2013-09-19 Thread Dan Nelson
In the last episode (Sep 18), Mark Saad said: On Tue, Sep 17, 2013 at 2:11 PM, Dan Nelson dnel...@allantgroup.com wrote: In the last episode (Sep 17), Mark Saad said: Can someone shed some light on a OID mystery I have. I am using cacti to trend some snmp data off a bunch of FreeBSD

Re: FreeBSD SNMP OID Question

2013-09-17 Thread Dan Nelson
That's a counter, so it's reporting the total number of pageins since boot (or since snmp started, depending on the particular value you're fetching). Cacti should be able to poll that OID and graph the difference over time to show pageins/sec. -- Dan Nelson dnel

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

2013-05-31 Thread Dan Nelson
, process results in final component, and being able to simply set variables there that can be used in the rest of the script is very elegant. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-hackers@freebsd.org mailing list http

Re: lib for working with graphs

2012-11-28 Thread Dan Nelson
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://www.graphviz.org/doc/libguide/libguide.pdf -- Dan Nelson dnel...@allantgroup.com

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

2012-10-31 Thread Dan Nelson
lower total meory usage if you are using a lot of threads. I'd take a look at the G and R flags first. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: Regarding core disable in FreeBSD 9

2012-04-13 Thread Dan Nelson
. -- 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: [clang] Build error on r232474 (and a few before, don't know exactly which)

2012-03-03 Thread Dan Nelson
___ 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

Re: What is going on with ash / sh

2011-11-02 Thread Dan Nelson
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. -- Dan Nelson dnel...@allantgroup.com

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 ps -ax | grep -v grep | grep xxx Here is what I see

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 dnel...@allantgroup.com wrote: In the last episode (Oct 24), Christopher J. Ruwe said: On Sun, 23 Oct 2011 19:10:34 -0500 Dan Nelson dnel...@allantgroup.com wrote: In the last

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 dnel...@allantgroup.com 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 for calling

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

2011-10-23 Thread Dan Nelson
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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

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

2011-10-21 Thread Dan Nelson
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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: Does anyone use nscd?

2011-10-06 Thread Dan Nelson
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 ___ freebsd-hackers@freebsd.org mailing

Re: Recommended amount of swap

2011-09-05 Thread Dan Nelson
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 dnel...@allantgroup.com

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 dnel...@allantgroup.com 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 systems with 512 MB - 8 GB

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

2011-07-16 Thread Dan Nelson
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 what function the bad instruction is in? -- Dan Nelson dnel...@allantgroup.com

Re: Default value for UIDs

2011-06-28 Thread Dan Nelson
, 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 ___ freebsd-hackers

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

2011-06-15 Thread Dan Nelson
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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: usertime and systime

2011-03-16 Thread Dan Nelson
://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 state (alias saved gid

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 running process? Try applying the attached

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

2011-02-11 Thread Dan Nelson
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 ___ freebsd-hackers@freebsd.org

Re: Namecache lock contention?

2011-01-28 Thread Dan Nelson
, cache_lock, Name Cache); The CACHE_*LOCK() macros.c in vfs_cache use cache_lock, so you've got lots of possible contention points. procstat -ka and/or dtrace might help you determine exactly where. -- Dan Nelson dnel...@allantgroup.com

Re: ugen claiming pcie device

2010-11-13 Thread Dan Nelson
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

Re: Interactive tool for installing packages

2010-11-10 Thread Dan Nelson
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...@allantgroup.com ___ freebsd

Re: sysctl way too slow

2010-07-14 Thread Dan Nelson
? 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 via ACPI. -- Dan Nelson dnel

Re: How to get a thread ID?

2010-06-03 Thread Dan Nelson
? 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/freebsd-hackers To unsubscribe, send

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

2010-04-22 Thread Dan Nelson
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. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-hackers@freebsd.org mailing list

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's really no going back. I'd sure vote

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

2010-04-14 Thread Dan Nelson
/libart_lgpl_2.so.2 (0x7fa047234000) libm.so.6 = /lib64/libm.so.6 (0x7fa0470df000) libc.so.6 = /lib64/libc.so.6 (0x7fa046e9f000) /lib64/ld-linux-x86-64.so.2 (0x7fa04785e000) -- Dan Nelson dnel...@allantgroup.com

Re: VMDirectPath with FreeBSD 8 VM under ESXi 4.0

2010-03-09 Thread Dan Nelson
will respond on the basis of your support entitlement. Looks like you crashed VMWare. That shouldn't happen. Send the log and core file to VMWare support and they should be able to help you. -- Dan Nelson dnel...@allantgroup.com ___ freebsd

Re: kernel malloc() and free()

2010-03-01 Thread Dan Nelson
() 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 the page are the same size. -- Dan Nelson dnel...@allantgroup.com

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

2010-03-01 Thread Dan Nelson
ONLINE 0 0 0 md2 OFFLINE 0 0 0 md3 ONLINE 0 0 0 -- Dan Nelson dnel...@allantgroup.com ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: ps time field jumps backward

2010-02-05 Thread Dan Nelson
the per-thread CPU counts when displaying the per-process numbers, but it doesn't seem to. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

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

2010-01-19 Thread Dan Nelson
holding the mutex, and will be fairly scheduled by the kernel. -- 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

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 dnel...@allantgroup.com wrote: In the last episode (Dec 19), Zaphod Beeblebrox said: Here's an interesting conundrum.  I don't know what's different between the TCP that scp uses from the TCP

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

2009-12-19 Thread Dan Nelson
each command. According to the mount_nfs manpage, it looks like there is some prefetching that can be enabled with the -a ## option. It doesn't say what the default is, though. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-hackers

Re: Getting running time of child

2009-11-19 Thread Dan Nelson
, 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. -- Dan Nelson dnel...@allantgroup.com

Re: Can I bind POSIX thread to cpu core?

2009-06-28 Thread Dan Nelson
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

Re: top shows that multithreaded program uses 19623.14% CPU

2009-06-13 Thread Dan Nelson
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 list http://lists.freebsd.org/mailman

Re: Monitoring throughput of PCIe lanes

2009-06-01 Thread Dan Nelson
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 busstat -l). -- Dan Nelson dnel...@allantgroup.com ___ freebsd-hackers

Re: Garbled kernel messages on shutdown

2009-04-17 Thread Dan Nelson
to finish. -- 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: working of syscall handling

2009-04-08 Thread Dan Nelson
/readlink.html I will be very thankful if you can help me with it. #includestdio.h int readlink(void *a, void *b) { exit(0); } int main(int argc, char **argv) { printf(Hello World); } -- Dan Nelson dnel...@allantgroup.com

Re: rebuilding libpcap

2009-03-16 Thread Dan Nelson
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 Nelson dnel...@allantgroup.com

Re: CPU user/kernel time given the PID

2009-03-08 Thread Dan Nelson
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. -- Dan Nelson dnel...@allantgroup.com Index: extern.h

Re: portupgrade spurious skips

2009-02-26 Thread Dan Nelson
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... -- Dan Nelson dnel...@allantgroup.com ___ freebsd-hackers@freebsd.org mailing list http

Re: threaded, forked, rethreaded processes will deadlock

2009-01-08 Thread Dan Nelson
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() page is a good read here, too. -- Dan Nelson dnel...@allantgroup.com

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
); 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: 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 = uchg No; why would it be? I mean as far as their effect

Re: Is chflags' nodump + sunlnk = uchg

2008-11-12 Thread Dan Nelson
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: zfs waiting on zio-io_cv

2008-10-24 Thread Dan Nelson
/O. On ATA or SATA disks, you might want to set it to 2. -- 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

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

2008-10-23 Thread Dan Nelson
, 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] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: Pipes, cat buffer size

2008-10-18 Thread Dan Nelson
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 dd if=myfile obs=1m instead of patching cat. -- Dan Nelson [EMAIL PROTECTED

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. I'm trying it with cat and I'm seeing my read()s return small blocks, 64 kB

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 example does some kind of internal buffering that decouples

Re: FreeBSD and ISCSI, Strange Problem

2008-10-17 Thread Dan Nelson
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. -- Dan Nelson [EMAIL PROTECTED

Re: Error: Can't find libjava.so

2008-09-14 Thread Dan Nelson
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] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

Re: IPFW uid logging...

2008-09-08 Thread Dan Nelson
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 rule set up in ipfw to limit the exposure

Re: Securelevels

2008-06-28 Thread Dan Nelson
,O_RDONLY,00) = 4 (0x4) # Read-only opens of /dev/mem are allowed. kgdb -w should fail, however. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

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 mailing

Re: binary file within a shell script

2008-05-08 Thread Dan Nelson
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 [EMAIL PROTECTED

Re: OpenBSD sdiff Question

2008-03-17 Thread Dan Nelson
or are developed outside the FreeBSD cvs tree do have versions of their own. awk and tar, for example both recognize the --version flag (but not -v since that is already used). -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers

Re: A (perhaps silly) kqueue question

2008-03-14 Thread Dan Nelson
the fd? From my reading of the manpages, unless you specified EV_ONESHOT when you added the event, events will fire until you remove them or the condition that triggers them stops. -- Dan Nelson [EMAIL PROTECTED] Index: kern_event.c

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?query=select -- Dan Nelson

Re: Some FreeBSD performance Issues

2007-11-08 Thread Dan Nelson
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: memory pool, rfc

2007-10-31 Thread Dan Nelson
) - 'On the fly' filesystem compression (and it takes less read/write compressed data than non-compressed) zfs already has modular compression algorithms; it would be rather easy to add a mozule for your method and compare it to the existing gzip and lzjb algorithms. -- Dan Nelson

Re: Using userland library in Kernel

2007-08-08 Thread Dan Nelson
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] ___ freebsd-hackers

Re: nss_ldap without nscd or cached ?

2007-05-24 Thread Dan Nelson
attributes. That way you can do simple things like name-uid lookups without having to bind at all. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: More questions about BDB

2007-05-20 Thread Dan Nelson
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, send any mail to [EMAIL

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

2007-04-09 Thread Dan Nelson
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 mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: Problem with test(1)

2007-04-05 Thread Dan Nelson
. ... 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] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org

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

2007-03-02 Thread Dan Nelson
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.freebsd.org/mailman/listinfo/freebsd-hackers

Re: top delay value

2007-01-30 Thread Dan Nelson
for unprivileged users. Users can hog CPU by running while true ; do done or any number of other methods. That's what CPU limits are for :) -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http

Re: semaphore.h does'nt include fcntl.h ?

2007-01-15 Thread Dan Nelson
In the last episode (Jan 15), girish r said: You'll need to include options P1003_1B_SEMAPHORES in your kernel config, or load the sem kernel module. --Dan Nelson I could'nt find sem so I tried sysvsem.ko but I get: kldload: can't load sysvsem: File exists Does it mean that sysvsem

Re: Source code for user utilities

2007-01-15 Thread Dan Nelson
. and if you don't have source installed, you can download it: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html or browse the CVS repository online: http://www.freebsd.org/cgi/cvsweb.cgi/src/ -- Dan Nelson [EMAIL PROTECTED

Re: semaphore.h does'nt include fcntl.h ?

2007-01-14 Thread Dan Nelson
it, it spits out Bad system call (core dump). Specifically, I am trying to run this program given here: http://www.informit.com/articles/article.asp?p=679545seqNum=3rl=1;. You'll need to include options P1003_1B_SEMAPHORES in your kernel config, or load the sem kernel module. -- Dan Nelson

Re: Linking static libraries with '-l'

2006-12-20 Thread Dan Nelson
adds paths to the end of the search list, so if there's a /usr/local/lib/libabc.so, the linker will use that. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: ICC 9 in FreeBSD 6

2006-12-16 Thread Dan Nelson
for the ld commandline), then launches the real mcpcom binary. -- 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

Re: Newbie request - compiling with Xlib.h

2006-12-16 Thread Dan Nelson
the compile step, -L is for libraries and is used during the link step. Your commandline is a direct source-to-executable command, so it requires both. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http

Re: Reading in real time from a file without pipes

2006-12-11 Thread Dan Nelson
). -- 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: Reading in real time from a file without pipes

2006-12-11 Thread Dan Nelson
exists, of course). That's why I said Take a look at how the tail command does it, not Use the tail command :) -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: SER Core Dumps

2006-08-18 Thread Dan Nelson
this is something to take up with the software authors. Well, it doesn't seem to do so under Linux / Debian, and people on the #ser IRC channel have sent me to FreeBSD's maintainers :( They probably meant the maintainer of that particular port, which in net/ser's case is [EMAIL PROTECTED] . -- Dan

Re: absolute vs. relative offsets in disklabel

2006-07-31 Thread Dan Nelson
whether the offsets are relative or absolute by looking at what the 'c' partition's offset is. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: fdescfs functional in 6.1?

2006-07-29 Thread Dan Nelson
In the last episode (Jul 28), Jaye Mathisen said: On Fri, Jul 28, 2006 at 11:18:48PM -0500, Dan Nelson wrote: In the last episode (Jul 28), Jaye Mathisen said: s2# mount -t fdescfs fdescfs /dev/fd s2# ls -l /dev/fd total 16 crw--w 1 root tty 5, 1 Jul 28 18:01 0

Re: fdescfs functional in 6.1?

2006-07-28 Thread Dan Nelson
, and the permissions look fine. fd 3 is your current directory (so I guess you're in some smtp-related directory?), and fd 4 is the directory on the commandline (/dev/fd). -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org

Re: Error Api OpenLdap

2006-07-16 Thread Dan Nelson
test.c, and if you intend on linking to the library, you will also need to add -L/usr/local/lib -lldap. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers

Re: Alternative compiler toolchain ?

2006-06-30 Thread Dan Nelson
executables for any modern system except Solaris, so it would have to have a lot of work done on it to be useful. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: Simple question about mmap() system call

2006-06-23 Thread Dan Nelson
how many programs would break if the mmap syscall returned an error if neither MAP_PRIVATE or MAP_SHARED were set... -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: Coding question: finding the size of a block device

2006-06-22 Thread Dan Nelson
. -- 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: dump(8) performance

2006-06-02 Thread Dan Nelson
In the last episode (May 31), Zaphod Beeblebrox said: On 5/31/06, Eugene M. Kim [EMAIL PROTECTED] wrote: Dan Nelson wrote: Are you using the -C option to dump? I would expact that to help more in the dumping directories step, but it might help later phases too. Yep, -C32. I'm

Re: dump(8) performance

2006-05-31 Thread Dan Nelson
directories step, but it might help later phases too. -- 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: Heavy system load by pagedaemon

2006-05-10 Thread Dan Nelson
with a lot of free memory for a short period of time, and it may try paging in another process that was completely paged out (if you are low enough on RAM for that to have happened). That could cause pagedaemon activity. -- Dan Nelson [EMAIL PROTECTED

Re: Heavy system load by pagedaemon

2006-05-10 Thread Dan Nelson
In the last episode (May 10), Iasen Kostov said: On Wed, 2006-05-10 at 11:18 -0500, Dan Nelson wrote: In the last episode (May 10), Iasen Kostov said: On Wed, 2006-05-10 at 15:32 +0300, Iasen Kostov wrote: On Wed, 2006-05-10 at 15:28 +0300, Iasen Kostov wrote: I (probably) have some

Re: sysctl(3) and sysctl(8) discrepancies

2006-04-19 Thread Dan Nelson
. Saves having to parse the string every time if you are looking up the same sysctl repeatedly. sysctlbyname(hw.ncpu, ncpu, len, NULL, 0); HW_NCPU is the mib number for hw.ncpu if you want to build the mib array manually. -- Dan Nelson [EMAIL PROTECTED

Re: Problems with FreeBSD 6.0

2006-04-13 Thread Dan Nelson
. Your shell's echo builtin may or may not, but for portability, you have to assume it doesn't. Use the printf command if you want fancy formatting. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-hackers@freebsd.org mailing list http

Re: Net::FTPSSL error

2006-04-08 Thread Dan Nelson
with it? -- 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: kqueue oddity

2006-04-01 Thread Dan Nelson
; error = knote_attach(kn, kq); -- 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: kqueue oddity

2006-04-01 Thread Dan Nelson
In the last episode (Apr 01), Vclav Haisman said: Dan Nelson wrote: It's a kqueue bug, but a minor one. The problem is that the same flags field is used to pass actions from the client, and return status from the kernel. When you call kqueue with EV_ADD, the kernel never clears

  1   2   3   4   5   >