Re: is there a macro that prints the incoming param list?
On Mon, Jun 1, 2009 at 10:06 AM, Gary Kline kl...@thought.org wrote: is there any marco that printfs the incoming list, or am i asking too much of the compiler at runtime? example: main (int argc, char *argv) with this macro might print: 2, testinput and baz(char *file, int count) similarly might print, testinput, 47 i'm probably asking the impossible, but this is certainly the place to ask. thanks, gary ps: i'm looking to create a DEBUG header. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 4.91a release of Jottings: http://jottings.thought.org/index.php ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org How is the macro supposed to know how to print the arguments? There may be user defined types. The simplest way would be to add a printf statement after each function definition. You could write scripts which generate the format strings for you from your header files and then use a (variadic) macro which expects that you have generated a table which contains for each function name the corresponding format string and argument list. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
cannot mount slices of usbdrive
I have a usbdrive which was used on FreeBSD 6 or 7 but cannot be mounted now (on CURRENT with generic kernel). The drive is recognized but the individual slices do not seem to exist (see below). Any pointers on how to recover the content of the disk would be appreciated. I was thinking of building a new disk label from the fdisk output but am not sure that I understand what is involved properly (where does the in-core disklabel fdisk uses come from?) 1) # mount /dev/da1s1 /mnt1 mount: /dev/da1s1 : No such file or directory - 2) # dmesg da1 at umass-sim2 bus 2 target 0 lun 0 da1: SAMSUNG HD753LJ Fixed Direct Access SCSI-2 device da1: 40.000MB/s transfers da1: 715404MB (1465149168 512 byte sectors: 255H 63S/T 91201C) 3) # bsdlabel /dev/da1 # /dev/da1: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] a: 1465149152 16unused0 0 c: 14651491680unused0 0 # raw part, don't edit 4) # fdisk /dev/da1 *** Working on device /dev/da1 *** parameters extracted from in-core disklabel are: cylinders=91201 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=91201 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 377479242 (184316 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 377479305, size 377479305 (184316 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 754958610, size 377479305 (184316 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 4 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 1132437915, size 332706150 (162454 Meg), flag 80 (active) beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 5) # fdisk /dev/da1s1 fdisk: unable to get correct path for /dev/da1s1: No such file or directory ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: cannot mount slices of usbdrive
On 5/2/09, Matthias Apitz g...@unixarea.de wrote: El día Saturday, May 02, 2009 a las 01:06:09PM +0900, till plewe escribió: I have a usbdrive which was used on FreeBSD 6 or 7 but cannot be mounted now (on CURRENT with generic kernel). The drive is recognized but the individual slices do not seem to exist (see below). ... I have had the same problem: booting CURRENT from an USB key and wanting to get access to the SSD partitions created with RELENG_7 kernel in the EeePC. I've found no way to do and labeled the SSD from scratch (had even to overwrite the 1st blocks with dd(1) to make fdisk(1M) create partitions there). In your case: boot a RELENG_7 rescue CD, mount the usbdrive and backup the data (via LAN) to some other place. matthias Thanks. That sounds much more reasonable than what I was planning to do. I don't know why I wasn't thinking of the rescue CDs (most likely since I did not have to use them before). I'll give it a try once I find a big enough backup disk. - Till -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e matthias.ap...@oclc.org - w http://www.oclc.org/ http://www.UnixArea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: i had a tought
On 4/23/09, Gary Gatten ggat...@waddell.com wrote: -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Jerry McAllister Sent: Wednesday, April 22, 2009 1:42 PM To: Arjen Simon Scheer Cc: freebsd-questions@freebsd.org Subject: Re: i had a tought On Wed, Apr 22, 2009 at 06:10:04PM +0200, Arjen Simon Scheer wrote: why there is not a lunix operatingsystem consortium, for the kernel end the commercial userinterface Good question. Maybe you should ask them. Probably few people on this list will know because it is not a Lunix Email list. It is a group of FreeBSD users and FreeBSD is an operating system. It is a BSD UNIX type of operating system.Although it covers some similar territory as Lunix, it is not Lunix nor a flavor of it. So, if you can find a friendly group of Lunix developers, then you can ask them your question. Probably they will know more. As for FreeBSD, it does have a foundation - the FreeBSD foundation and a consortium made up of committers which is lead by a core group elected every two years. (something like that, I may be off on the election cycle details) On the other hand, you can just stick with FreeBSD and not bother with the Lunix stuff and you will get along just fine. jerry LMAO! Touche! So, are you saying I shouldn't ask any questions here about Ubuntu, Suse, RedHat, et al? Isn't Lunix better than BSD anyway? ;-) To be allowed to ask questions about Ubuntu you first have to come up with a clever name like wily wombat, for Suse you need a hotmail.com address. I don't know anything about RedHat and etal. You could ask questions about Debian. But they are switching to FreeBSD anyway (the kernel switch is complete and userland is to follow shortly). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: kern.maxfiles limit exceeded by uid 1003? what to do?
On Tue, Apr 14, 2009 at 9:11 PM, VeeJay maan...@gmail.com wrote: Hi there I am keep getting this error on the screen. I have tried to solve this problem by myself but still no luck. Could anyone guide what to do to increase the limit and avoid this error? sysctl -a | grep kern.maxfiles and then sysctl kern.maxfiles=123456789 (or some other BIG number) kern.maxfiles limit exceeded by uid 1003, please see tuning(7) kern.maxfiles limit exceeded by uid 1003, please see tuning(7) kern.maxfiles limit exceeded by uid 1003, please see tuning(7) kern.maxfiles limit exceeded by uid 1003, please see tuning(7) Apr 14 11:08:08 server2 postfix/pickup[25022] : fatal : kqueue : Too many files open in the system Apr 14 11:08:08 server2 postfix/pickup[25023] : fatal : kqueue : Too many files open in the system kern.maxfiles limit exceeded by uid 1003, please see tuning(7) kern.maxfiles limit exceeded by uid 1003, please see tuning(7) kern.maxfiles limit exceeded by uid 1003, please see tuning(7) kern.maxfiles limit exceeded by uid 1003, please see tuning(7) When this happens, I am unable to login on the server by consol or ssh. what to do? And I have to restart the server manually by on/off switch... -- Thanks! BR / vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Portupgrading - many problems
On Mon, Apr 25, 2005 at 11:21:47AM +, Iain Dooley wrote: hi all, i recently attempted to portupgrade the kde super package and had loads of problems. i first upgraded from FreeBSD 4.10 to FreeBSD 4.11, and then cvsup'd 'ports-all'. i then did portupgrade -R kde, but ran into several issues. a common error was: see /usr/ports/UPDATING entry dated 20050320: - Till ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
flockfile does not work with stdout (on
How can I control the output of processes (forked from a single process) all writing to the same file? f{un,}lockfile(file) seems to work unless file=stdout. Are there any other simple methods I can try? - Till PS. I am using 5.4-PRERELEASE i386 SMP-GENERIC ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: flockfile does not work with stdout (on
On Tue, Apr 05, 2005 at 10:40:49PM -0500, Dan Nelson wrote: In the last episode (Apr 06), Till Plewe said: How can I control the output of processes (forked from a single process) all writing to the same file? f{un,}lockfile(file) seems to work unless file=stdout. If they are still the same process image (i.e. no execs), you could mmap some ANONYMOUS|SHARED memory and wait on a flag byte with atomic_cmpset(). Actually, writing to stdout should be atomic for most writes (I have never seen gcc output garbled when doing parallel makes for example). The life span of each process is quite short (0.001s) and the system load is fairly high (~40) Thanks, your suggestion works. In fact flockfile also works if I use cons25 instead of {x,ml,...}term. So the culprit may be X. - Till ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: memory allocation/deallocation (malloc experts needed)
On Thu, May 20, 2004 at 05:36:31PM +0900, Charlie Root wrote: On Thu, May 20, 2004 at 01:42:00AM -0500, Dan Nelson wrote: In the last episode (May 20), Till Plewe said: My problem is essentially that freeing large numbers of small chunks of memory can be very slow. I have run into this problem twice so far. Do you have a testcase? The attached program mallocs 1 million 128-byte blocks, then frees them. With MALLOC_OPTIONS set to jz (i.e. no filling of freed memory), it takes .184 seconds to free them all. With it set to J, it takes 1 second. CPU: Intel Pentium III (909.96-MHz 686-class CPU) ... I changed your program a little bit to allow freeing the memory in random order which is closer to what happens when hash tables are deleted. The test program now allocates NUM pointers to SIZE byte memory chunks and then frees them. RANDOM 0 means the order in which the items are freed is the same as the order of allocation, while RANDOM 1 means that the memory is freed in (somewhat) random order The data below shows that freeing the memory is the bottleneck. (MALLOC_OPTIONS JZ, using jz gives essentially the same results perhaps about 25% faster) My current guess is that the part copied below of the function free_bytes in /usr/src/lib/libc/stdlib/malloc.c is to blame where linked lists are traversed to move/delete pages whose status has changed. At least that would explain the quadratic behaviour in the output of the test program below. lines 1010-1028 of /usr/src/lib/libc/stdlib/malloc.c if (info-free == 1) { /* Page became non-full */ mp = page_dir + info-shift; /* Insert in address order */ while (*mp (*mp)-next (*mp)-next-page info-page) mp = (*mp)-next; info-next = *mp; *mp = info; return; } if (info-free != info-total) return; /* Find remove this page in the queue */ while (*mp != info) { mp = ((*mp)-next); == FreeBSD 5.2-CURRENT Sun May 2 08:40:29 JST 2004 CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2392.05-MHz 686-class CPU) test -n 20 NUM 120 RANDOM 0 SIZE 16 malloc: 0.140976 free: 0.113800 NUM 120 RANDOM 1 SIZE 16 malloc: 0.153176 free: 1.671878 test -n 21 NUM 121 RANDOM 0 SIZE 16 malloc: 0.277667 free: 0.228911 NUM 121 RANDOM 1 SIZE 16 malloc: 0.320030 free: 5.991513 test -n 22 NUM 122 RANDOM 0 SIZE 16 malloc: 0.492440 free: 0.466889 NUM 122 RANDOM 1 SIZE 16 malloc: 0.591442 free: 22.437910 test -n 23 NUM 123 RANDOM 0 SIZE 16 malloc: 1.106733 free: 0.929016 NUM 123 RANDOM 1 SIZE 16 malloc: 1.180094 free: 86.868541 test -n 24 NUM 124 RANDOM 0 SIZE 16 malloc: 2.040155 free: 1.866336 NUM 124 RANDOM 1 SIZE 16 malloc: 2.250588 free: 356.746455 test -n 25 NUM 125 RANDOM 0 SIZE 16 malloc: 4.280042 free: 3.716874 NUM 125 RANDOM 1 SIZE 16 malloc: 4.567206 free: 1497.213212 test -n 26 NUM 126 RANDOM 0 SIZE 16 malloc: 8.543537 free: 7.612657 NUM 126 RANDOM 1 SIZE 16 malloc: 9.055712 free: 6187.992730 == FreeBSD 5.2-CURRENT Wed May 19 10:59:08 JST 2004 CPU: AMD Opteron(tm) Processor 248 (2205.01-MHz K8-class CPU) test -n 20 NUM 120 RANDOM 0 SIZE 16 malloc:0.124275 free:0.067746 NUM 120 RANDOM 0 SIZE 16 malloc:0.098449 free:0.066730 NUM 120 RANDOM 1 SIZE 16 malloc:0.119348 free:1.435530 NUM 120 RANDOM 1 SIZE 16 malloc:0.099841 free:1.428259 test -n 21 NUM 121 RANDOM 0 SIZE 16 malloc:0.213471 free:0.134132 NUM 121 RANDOM 0 SIZE 16 malloc:0.199287 free:0.132293 NUM 121 RANDOM 1 SIZE 16 malloc:0.184251 free:4.998957 NUM 121 RANDOM 1 SIZE 16 malloc:0.186739 free:4.849894 test -n 22 NUM 122 RANDOM 0 SIZE 16 malloc:0.464616 free:0.255515 NUM 122 RANDOM 0 SIZE 16 malloc:0.425375 free:0.254138 NUM 122 RANDOM 1 SIZE 16 malloc:0.404901 free:17.264623 NUM 122 RANDOM 1 SIZE 16 malloc:0.394420 free:18.328755 test -n 23 NUM 123 RANDOM 0 SIZE 16 malloc:0.819199 free:0.514065 NUM 123 RANDOM 0 SIZE 16 malloc:0.858903 free:0.520739 NUM 123 RANDOM 1 SIZE 16 malloc:0.830438 free:67.556339 NUM 123 RANDOM 1 SIZE 16 malloc:0.821419 free:67.287440 test -n 24 NUM 124 RANDOM 0 SIZE 16 malloc:1.726636 free:1.032238 NUM 124 RANDOM 0 SIZE 16 malloc:1.709127 free:1.028701 NUM 124 RANDOM 1 SIZE 16 malloc:1.615758 free:290.153962 NUM 124 RANDOM 1 SIZE 16 malloc:1.645739 free:279.887830 test -n 25 NUM 125 RANDOM 0 SIZE 16 malloc:3.429280 free:2.044097 NUM 125 RANDOM 0 SIZE 16 malloc:3.486703 free:2.026912 NUM 125 RANDOM 1 SIZE 16 malloc:3.536784 free:1172.642691 NUM 125 RANDOM 1 SIZE 16 malloc:3.481226 free:1176.604815 == test program #include stdio.h #include stdlib.h #include sys/time.h
Re: memory allocation/deallocation (malloc experts needed)
On Thu, May 20, 2004 at 09:28:12AM -0400, Chuck Swiger wrote: Till Plewe wrote: My problem is essentially that freeing large numbers of small chunks of memory can be very slow. I have run into this problem twice so far. [ ... ] One solution would be to divide the memory in larger regions and to tell malloc which chunk to use for the next few calls, respectively when a whole chunk could be freed. But I don't know how to do this. Consider using (or searching for information about) a zone-based malloc. NEXTSTEP used one and hence Darwin/OS X probably have sources available for you to consider... Thanks. I will give it a try. Although I was hoping to find somebody who has already an alternative malloc implementation running. - Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
memory allocation/deallocation (malloc experts needed)
My problem is essentially that freeing large numbers of small chunks of memory can be very slow. I have run into this problem twice so far. 1) Shutting down python can take several minutes if I have used large dictionaries. The solution I use here is to exit python without freeing the allocated memory (not really a good solution). 2) Freeing large hashtables in C. (No solution yet.) For these hashtables I can fairly easily divide the data into groups which could be deleted together. If I have all this data in one predefined region of memory then deleting them would be very fast. However in order to keep memory consumption as low as possible without sacrificing speed I am using Judy arrays (see the Judy project at source forge). But that means I have no direct control over how malloc is called. One solution would be to divide the memory in larger regions and to tell malloc which chunk to use for the next few calls, respectively when a whole chunk could be freed. But I don't know how to do this. Cyclone's regions seem to provide more or less what I need but cyclone works on neither CURRENT nor on amd64. Any suggestions where to look/what to read are greatly appreciated - Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
second CPU not utilized
Does anybody have an idea why the second cpu is not used for the computing intensive work? idle will stay around 50% while the two instances of python2.4 share 1 CPU The only unusual occurence recently were a few Bus Errors and the system freezing when two processes which were using around 2-4GB of memory each were running uname -a FreeBSD plewe3.is.tsukuba.ac.jp 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Tue Apr 13 10:49:31 JST 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERNEL amd64 ### top ### last pid: 1148; load averages: 1.80, 1.88, 1.90 up 0+03:03:20 11:34:49 34 processes: 3 running, 31 sleeping CPU states: 49.8% user, 0.0% nice, 0.4% system, 0.0% interrupt, 49.8% idle Mem: 1138M Active, 3087M Inact, 288M Wired, 186M Cache, 214M Buf, 1186M Free Swap: 4096M Total, 4096M Free PID USERNAME PRI NICE SIZERES STATE C TIME WCPUCPU COMMAND 1080 root 1390 1016M 1004M RUN0 5:06 64.84% 64.84% python2.4 1148 root 1390 114M 100M CPU0 0 0:15 28.12% 28.12% python2.4 589 root 760 29008K 17040K select 1 0:07 0.00% 0.00% XFree86 595 root 760 36044K 3292K select 1 0:02 0.00% 0.00% mlterm 601 root 760 35884K 3212K select 1 0:02 0.00% 0.00% mlterm last pid: 1200; load averages: 1.75, 1.87, 1.90 up 0+03:17:11 11:48:40 34 processes: 3 running, 31 sleeping CPU states: 50.0% user, 0.0% nice, 0.6% system, 0.2% interrupt, 49.2% idle Mem: 2309M Active, 3029M Inact, 290M Wired, 249M Cache, 214M Buf, 8180K Free Swap: 4096M Total, 4096M Free PID USERNAME PRI NICE SIZERES STATE C TIME WCPUCPU COMMAND 1168 root 1390 1022M 1010M CPU0 0 5:06 75.00% 75.00% python2.4 1148 root 1390 1279M 1268M RUN0 7:32 18.75% 18.75% python2.4 589 root 760 29008K 17040K select 1 0:08 0.00% 0.00% XFree86 595 root 760 36044K 3292K select 1 0:02 0.00% 0.00% mlterm ### diff /sys/amd64/conf/MYKERNEL /sys/amd64/conf/GENERIC ### 23c23 ident MYKERNEL --- ident GENERIC 28c28 #makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols --- makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols 63,67c63,67 #options DDB # Enable the kernel debugger #options INVARIANTS # Enable calls of extra sanity checking #options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS #options WITNESS # Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN# Don't run witness on spinlocks for speed --- options DDB # Enable the kernel debugger options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options WITNESS_SKIPSPIN# Don't run witness on spinlocks for speed 78a79 264,268d264 options MAXDSIZ=(23UL*256*1024*1024) options MAXSSIZ=(23UL*256*1024*1024) options DFLDSIZ=(23UL*256*1024*1024) ## dmesg ## Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.2-CURRENT #2: Tue Apr 13 10:49:31 JST 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERNEL Preloaded elf kernel /boot/kernel/kernel at 0x808a6000. ACPI APIC Table: PTLTD APIC Timecounter i8254 frequency 1193182 Hz quality 0 CPU: AMD Opteron(tm) Processor 248 (2205.01-MHz K8-class CPU) Origin = AuthenticAMD Id = 0xf58 Stepping = 8 Features=0x78bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE 36,CLFLUSH,MMX,FXSR,SSE,SSE2 AMD Features=0xe0500800SYSCALL,NX,MMX+,LM,3DNow!+,3DNow! real memory = 6442450944 (6144 MB) avail memory = 6163116032 (5877 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 Version 1.1 irqs 0-23 on motherboard ioapic1 Version 1.1 irqs 24-27 on motherboard ioapic2 Version 1.1 irqs 28-31 on motherboard random: entropy source, Software, Yarrow acpi0: PTLTDXSDT on motherboard acpi0: [GIANT-LOCKED] acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) Timecounter ACPI-fast frequency 3579545 Hz quality 1000 unknown: I/O range not supported unknown: I/O range not supported acpi_timer0: 24-bit timer at 3.579545MHz port 0x8008-0x800b on acpi0 acpi_cpu0: CPU port 0x530-0x537 on acpi0 acpi_cpu1: CPU port 0x530-0x537 on acpi0 acpi_button0: Power Button on acpi0 pcib0: ACPI
Re: second CPU not utilized
On Thu, Apr 15, 2004 at 11:59:38AM +0900, Till Plewe wrote: Does anybody have an idea why the second cpu is not used for the computing intensive work? idle will stay around 50% while the two instances of python2.4 share 1 CPU The only unusual occurence recently were a few Bus Errors and the system freezing when two processes which were using around 2-4GB of memory each were running I forgot to mention that until the system froze last night both instances were running at 99% using both CPUs. The current behaviour started after rebooting. - Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
port{up,down}grade
Can anybody shed some light on this? Why does portupgrade think that upgrading from icc-8.0.058 to icc-8.0.061 is downgrading? # portupgrade icc ** No need to upgrade 'icc-8.0.058' (= icc-8.0.058.p061). \ (specify -f to force) # portupgrade -f icc --- Downgrading 'icc-8.0.058' to 'icc-8.0.058.p061' (lang/icc) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port{up,down}grade
On Wed, Mar 24, 2004 at 03:24:17PM +0100, Remko Lodder wrote: Hi Till Till Plewe wrote: Can anybody shed some light on this? Why does portupgrade think that upgrading from icc-8.0.058 to icc-8.0.061 is downgrading? Constructive fault, see below # portupgrade icc ** No need to upgrade 'icc-8.0.058' (= icc-8.0.058.p061). \ (specify -f to force) -p061 means patchlevel 061.. not version 8.0.061 but 8.0.058-p061 , it could easily be that your current version was actualy newer... Thanks Remko. That would explain why portupgrade thinks its downgrading. The funny thing is that portupgrade icc before produced the message: Go to Intel Premier Support ... obtain l_cc_pc_8.0.058.tar.gz l_cc_pc_8.0.058_pe061.tar.gz ... Put l_cc_pc_8.0.058.tar.gz l_cc_pc_8.0.058_pe061.tar.gz into /usr/ports/distfiles and run make again ... when icc-8.0.058 was installed. - Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: your mail
On Thu, Jan 15, 2004 at 07:07:48PM -0800, Evan Sayer wrote: FreeBSD- Please help, this is really important. I was told that i could get rid of the ^m symbols at the end of the lines in my web page's html code by using sed. They said to execute sed s//^m^m index.html index.html or something like that. This got rid of everything in the file. I really need this back, so any help would be greatly appreciated. Unless you have a back up your file is lost. If you type: command FILE1a ... FILE1z FILE2 in your shell, then the shell does the following: 1) it creates an empty file with name FILE2. If there is already a file with this name it will be !ERASED! 2) it executes the command using FILES1a-FILE1z as arguments 3) writes the result into FILE2. In your case the shell erased your file index.html before it could use it as an argument to the sed command. Sorry. - Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
dedicate 1 CPU to a single process
Can one processor on a dual processor machine be reserved exclusively for the use of a single process? If that is not posssible how can I stop one process being moved back and forth between the two CPUs. - Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
assembler, icc/gcc,
I am writing a program where speed is very important. Some parts will probably have to be written in assembler. I have a dual-Xeon machine running CURRENT. I am looking for {advice on,experiences people have had with} writing assembler programs for pentium4/xeon processors. (I have too many manuals right now and difficulties in deciding where to start) In particular, I am not sure whether I should be using nasm/icc or gas/gcc. Nasm supports SSE2 instructions (I don't know if gas does, the intel2gas port doesn't) which I probably need in order to manipulate 81bit-500bit integers (sets) efficiently. On the other hand I would like to be able to use inline assembler but that seems to be impossible with NASM and gcc. I don't exactly know what style of inline assembler icc supports yet. Besides /usr/ports/lang/intel2gas there is a nasm-2-gcc-inline translator at Fermilab http://lqcd.fnal.gov/sse/inline.html which I haven't tried yet. In any case any suggestions as to how to proceed would be appreciated. - Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: On 5.1, what is the process named idle?
On Thu, Sep 11, 2003 at 08:04:05PM -0400, Joe Altman wrote: Greetings, list subsribers... I've installed 5.1 and a variety of apps on a machine, in preparation for a move to 5.1 in the near future, and in the course of playing around on it, I've noticed a process called idle: ... What is idle? IDLE - an Integrated DeveLopment Environment for Python (see www.python.org) - Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How do I change the extensions on a slew of files
On Wed, Sep 03, 2003 at 06:25:07PM -0700, Jonas wrote: Hello Know-It-Alls, If I have a directory with a whole slew of files with the same file extension, for example: 1-1-1.inc 1-1-2.inc 1-1-3.inc etc. What command can I use to change the file extension - but keep the file name the same - in one swell swoop? The equivalent command in Windows would be: C:\ren *.inc *.htm The shortest answer is probably: portinstall mmv; mmv *.inc =1.htm - Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
trouble installing FreeBSD 5.1 on Vaio PCG-Z505VR/K and PCG N505
I run into the following problems trying to get FreeBSD5.1 onto the above two laptops (neither of which has a built in floppy/cd) Basic I use a USB floppy drive. (I only have a Panasonic KXL-808AN CDROM which is not recognized) I used 4 sets of boot floppies ( so floppies should not be the problem) Vaio PCG-Z505VR/K I insert kern.flp and then mfsroot.flp, but then the kernel boots up to umass1 and then the kernel panics. The last lines are: umass1: CBI reset failed, SHORT_XFER umass1: CBI bulk-in stall clear failed, TIMEOUT panic: Removing other than first element Vaio PCG N505 kern.flp and then mfsroot.flp work (drivers.flp doesn't; the floppy drive is not found any longer) kernel boots. Trying to get to install the various distribution sets I get the following problems: network I tried many networks cards, some of them on the list of supported hardware all refuse to configure the interface (ed1,wi0) using DHCP From a dos partition: I get dos partition not found. I installed netbsd (installs without a hitch), made a dos partition (using netbsd), put the distribution sets in a directory /freebsd, reboot with the boot floppies select install from a dos partition distribution sets not found or some such message (I forgot) Since the {Free,Net}BSD naming schemes for hard drives differ I had some problems for FreeBSD to recognize the dos partition (it was hiding inside the NetBSD partition) Please cc any suggestions you might have to me. Thanks, Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: trouble installing FreeBSD 5.1 on Vaio PCG-Z505VR/K and PCG N505
It seems that the Reply-To field of my message was cut off. If you have any suggestion please send them to the list (I subscribed) or to till at score.is.tsukuba.ac.jp. Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how much space for /
On Thu, Jun 19, 2003 at 12:12:29AM -0500, sweetleaf wrote: When i installed freebsd-5.1, i stayed close to the recommended partition sizes in the handbook. The faq. said 100 megabytes would usually be enough for the / partition. I decided to install freebsd with 300M for the / partition just to be on the safe side. The only thing i have added since the original install is the linux compatibility and some linux apps i needed such as netscape, opera etc. Ok, now for some reason my / partition shows to be full and i cant figure it out as like i said only a few apps have been installed. It appears to me that after adding linux compatibility the / partition went to full maybe because of the syslink compat that was placed on my / partition by the freebsd-5.1 linux compatibility port. # df -h FilesystemSize Used Avail Capacity Mounted on /dev/ad0s1a 290M 269M -1.7M 101%/ devfs 1.0K 1.0K 0B 100%/dev /dev/ad0s1f 965M 2.0K 888M 0%/home /dev/ad0s1g 965M 2.0K 888M 0%/private /dev/ad0s1e 484M 10.0K 445M 0%/tmp /dev/ad0s1h33G 1.4G29G 5%/usr /dev/ad0s1d 145M 9.2M 124M 7%/var # cd / # pwd / KroNiC# ls .cshrc bootdistprivate sys .profilecdrom entropy proctmp COPYRIGHT cdrom1 etc rootusr XF86Config.new compat homesbinvar bin dev mnt stand Is there another way this should be done? Thanks in advance. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Are you running netscape/opera as root? If so check the size of the .netscape .opera directories in /root. They can get quite big. If not, use something like du -d 2 | sort -n in all directories which are living in your root partition to look for the guilty directories. - Till ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
curses header conflict
When trying to install python2.3 on either stable or current the curses module doesn't build. I get the following compiler complaints: STABLE (line numbers in brackets are from CURRENT) /usr/include/ncurses.h:236(289): conflicting types for `wchar_t' /usr/include/stdlib.h:58(57): previous declaration of `wchar_t' /usr/include/ncurses.h:239(292): conflicting types for `wint_t' /usr/include/wchar.h:89(96): previous declaration of `wint_t' Can somebody explain what the differrence between_WCHAR_T and _BSD_WCHAR_T is? I appended relevant parts of these header files from STABLE. Simply deleting lines 234-240 of /usr/include/ncurses.h works (The curses module builds without problems.) However I would much rather learn the reason for the various definitions of wchar_t stlib.h l.56-61: === #ifndef __cplusplus #ifdef _BSD_WCHAR_T_ typedef _BSD_WCHAR_T_ wchar_t; #undef _BSD_WCHAR_T_ #endif #endif wchar.h l.77-91: === #ifdef _BSD_WCHAR_T_ typedef _BSD_WCHAR_T_ wchar_t; #undef _BSD_WCHAR_T_ #endif #endif #ifdef _BSD_MBSTATE_T_ typedef _BSD_MBSTATE_T_ mbstate_t; #undef _BSD_MBSTATE_T_ #endif #ifdef _BSD_WINT_T_ typedef _BSD_WINT_T_wint_t; #undef _BSD_WINT_T_ #endif ncurses.h l.234-240: === #ifdef _XOPEN_SOURCE_EXTENDED #ifndef _WCHAR_T typedef unsigned long wchar_t; #endif /* _WCHAR_T */ #ifndef _WINT_T typedef long int wint_t; #endif /* _WINT_T */ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]