Re: sed -i
On Mon, Mar 26, 2007 at 08:57:14PM +0530, Joseph Koshy wrote: Recently noticed that our sed(1) differs from its GNU analog in that in -i mode it considers all files as a single sequence of lines while the latter treats each file independently. The in-line mode isn't in POSIX, so it isn't really clear which way is correct. Aren't sed's addresses required to be cumulative across its input files? http://www.opengroup.org/onlinepubs/009695399/utilities/sed.html That makes sense for filter mode because it's equvalent to concatenating the files in advance: cat files ... | sed expression OTOH, in-place mode selected by a -i option can be seen as follows: for f in files ...; do sed expression $f $f.tmp mv $f $f.bak mv $f.tmp $f done I.e., each file preserves its individuality. This can be at logical conflict with cumulative addresses across all files. -- Yar ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
IRQ storm
Hello, I apologize for repeating post here, but on FreeBSD-questions mailing lists no one gave me an answer. I've changed motherboard recently (now it is Intel DP965LT) and now I have my PC slowed down considerably. vmstat -i shows a huge amount of interrupts on irq17: atapci0: interrupt total rate irq1: atkbd0 12535 4 irq12: psm0 9410 3 irq17: atapci0 189627864 61507 irq19: atapci1+ 391391126 irq20: em0 29076 9 irq22: pcm020557 6 cpu0: timer 6133486 1989 cpu1: timer 6133460 1989 Total 202357779 65636 Since this problem came, my Xorg stopped seeing my PCIE video card. I guess these two could be related. I've tried to boot in safe mode and with ACPI disabled but the problem persists. I've rebuild the kernel with minimal set of options and devices, but it did not help. I've disabled all non-vital devices from BIOS, tried to put my SATA drive in Native and legacy modes, tried with S.M.A.R.T. disabled, disabled USB, FireWire, NIC, serial and parallel ports, floppy controller, but nothing helped. What else should I try? I've attached my dmesg output (with boot_verbose=YES in loader.conf, that's why it is so large) I do not have atapicam enabled. Here is my kldstat output: # kldstat Id Refs AddressSize Name 1 14 0xc040 3703a4 kernel 21 0xc0771000 6ea8 linprocfs.ko 32 0xc0778000 1adb8linux.ko 41 0xc0793000 2364 accf_http.ko 51 0xc0796000 aa74 cpufreq.ko 61 0xc07a1000 59a50acpi.ko 71 0xc4a7a000 3000 pflog.ko 81 0xc4a7d000 2d000pf.ko I've checked my kernel configuration file and I do not have it there either. What else should I check? After several days of playing in console looking for hardware-related tools, I found that after running this: # atacontrol reinit ata2 the storm was gone. My only HDD in on ata4: # atacontrol info ata4 Master: ad8 ST3160812AS/3.AAD Serial ATA II Slave: no device present After this my Xorg is OK again. Now my problem is worked around putting this command (atacontrol reinit ata2) into /etc/rc.local, but what is the cause? Is it a bug? Is there a problem with my hardware? Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 6.2-STABLE #0: Sat Mar 24 09:35:30 EET 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/kpax WARNING: MPSAFE network stack disabled, expect reduced performance. Preloaded elf kernel /boot/kernel/kernel at 0xc0796000. Preloaded elf module /boot/kernel/acpi.ko at 0xc07961ec. Calibrating clock(s) ... i8254 clock: 1190766 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter i8254 frequency 1193182 Hz quality 0 Calibrating TSC clock ... TSC clock: 2802815953 Hz CPU: Intel(R) Pentium(R) D CPU 2.80GHz (2802.82-MHz 686-class CPU) Origin = GenuineIntel Id = 0xf44 Stepping = 4 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14 AMD Features=0x2010NX,LM Cores per package: 2 real memory = 1055580160 (1006 MB) Physical memory chunk(s): 0x1000 - 0x0008dfff, 577536 bytes (141 pages) 0x0010 - 0x003f, 3145728 bytes (768 pages) 0x00828000 - 0x3cce3fff, 1011597312 bytes (246972 pages) 0x3df5 - 0x3edfafff, 15380480 bytes (3755 pages) 0x3ee07000 - 0x3ee9dfff, 618496 bytes (151 pages) avail memory = 1027379200 (979 MB) MP Configuration Table version 1.4 found at 0xc00fe670 Table 'FACP' at 0x3eefc000 Table 'APIC' at 0x3eef6000 MADT: Found table at 0x3eef6000 APIC: Using the MADT enumerator. MADT: Found CPU APIC ID 0 ACPI ID 1: enabled SMP: Added CPU 0 (AP) MADT: Found CPU APIC ID 1 ACPI ID 2: enabled SMP: Added CPU 1 (AP) MADT: Found CPU APIC ID 130 ACPI ID 3: disabled MADT: Found CPU APIC ID 131 ACPI ID 4: disabled INTR: Adding local APIC 0 as a target ACPI APIC Table: INTEL DP965LT INTR: Adding local APIC 1 as a target FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 pnpbios: Found PnP BIOS data at 0xc00fe0e0 pnpbios: Entry = f:b07f Rev = 1.0 pnpbios: OEM ID 8224744e Other BIOS signatures found: APIC: CPU 0 has ACPI ID 1 APIC: CPU 1 has ACPI ID 2 MADT: Found IO APIC ID 2, Interrupt 0 at 0xfec0 ioapic0: Changing APIC ID to 2 ioapic0: Routing external 8259A's - intpin 0 MADT: Interrupt override: source 0, irq 2 ioapic0: Routing IRQ 0 - intpin 2 MADT: Interrupt override:
Re: Have people started working on any Google Summer of code 2007 project?
Hi, Is FreeBSD restricting non-students from not taking up any project that is 'suitable for summer of code'? For eg. I was planning to take up the 'super tunnel daemon' project some time back. I had done some initial work but now i find that it has also been marked as 'Suitable for summer of code'. I am no longer a student. I am working currently at a firm. So i dont think that i will be eligible for the summer of code. Can i still take up the project or am i forced to take up those that are not marked as 'suitable for summer of code'? Also, if someone has taken a summer of code project can no-one else take it up as a normal project to contribute to FreeBSD ? Awaiting a reply, Ajay. On 3/26/07, Julian H. Stacey [EMAIL PROTECTED] wrote: Alexander Leidinger wrote: Quoting ajay gopalakrishnan [EMAIL PROTECTED] (Sat, 24 Mar 2007 15:53:11 +0530): Have people started working on any Google Summer of code 2007 project? I saw some project ideas marked as Suitable for Summer of code on the project ideas web page. But have any of those projects been taken up? Proposals are submitted by students to Google and available for rating in the mentor-interface. No proposal is selected yet and we don't know yet how many seats for students we have in this SoC. I suggest to have a look at the Google SoC pages, they provide a timeline there. Quoting http://code.google.com/soc/ We've extended the deadline for student applications to Monday, March 26, 2007. -- Julian Stacey. Munich Computer Consultant, BSD Unix C Linux. http://berklix.com Escape Microsoft 20th April 2007: http://berklix.com/free/talk/ Ihr Rauch = mein allergischer Kopfschmerz. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Have people started working on any Google Summer of code 2007 project?
Reference: From: ajay gopalakrishnan [EMAIL PROTECTED] Is FreeBSD restricting non-students from not taking up any project that is 'suitable for summer of code'? For eg. I was planning to take up the 'super tunnel daemon' project some time back. I had done some initial work but now i find that it has also been marked as 'Suitable for summer of code'. I am no longer a student. I am working currently at a firm. So i dont think that i will be eligible for the summer of code. Can i still take up the project or am i forced to take up those that are not marked as 'suitable for summer of code'? Also, if someone has taken a summer of code project can no-one else take it up as a normal project to contribute to FreeBSD ? Awaiting a reply, Ajay. As I'm on To: line. (Though I have no special status other than being last poster), to ensure you get some reply, My 2c. : No can stop anyone working; Be a shame though if 2 people work one's effort was not used. I suppose as SoC deadline was yesterday it'll take a while for google to publish their sponsoring list. If 2 people develope same thing: whose code will be commited will I suppose be decided on which arrives first /or seems best code, hopefully independent of status of author eg student V. independent. End of non authoritative 2 cents worth :-) -- Julian Stacey. Munich Computer Consultant, BSD Unix C Linux. http://berklix.com Escape Microsoft 20th April 2007: http://berklix.com/free/talk/ Ihr Rauch = mein allergischer Kopfschmerz. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sendto() giving EPERM outside a jail
On Saturday 24 March 2007 02:47, Steve Watt wrote: According to my reading of the man page it is not possible to get this error unless I'm using jails (which I'm not). The code in question does.. That's probably a buglet in the man page. I guess it would be nice if the man page(s) mentioned that a firewall could cause EPERM. I have seen it before with other apps but the sendto() confused me. Can someone shed light on what the problem is? The application appears to work fine even with this error though. man setsockopt, search for SO_BROADCAST. It doesn't say anything about EPERM. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au The nice thing about standards is that there are so many of them to choose from. -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C pgpbuPm1YOglD.pgp Description: PGP signature
Re: sendto() giving EPERM outside a jail
On Mar 28, 10:23, Daniel O'Connor wrote: } Subject: Re: sendto() giving EPERM outside a jail } } On Saturday 24 March 2007 02:47, Steve Watt wrote: } According to my reading of the man page it is not possible to get this } error unless I'm using jails (which I'm not). The code in question does. } That's probably a buglet in the man page. } } I guess it would be nice if the man page(s) mentioned that a firewall could } cause EPERM. I have seen it before with other apps but the sendto() confused } me. It's one of those unpleasant interactions between pluggable subsystems, so it's a bit tough to document -- there are various different firewalls available, after all. } Can someone shed light on what the problem is? The application appears to } work fine even with this error though. } } man setsockopt, search for SO_BROADCAST. } } It doesn't say anything about EPERM. If you're sending broadcast broadcast or multicast datagrams, you need to set the SO_BROADCAST socket option, as well. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5 / 37N 20' 15.3 Internet: steve @ Watt.COM Whois: SW32-ARIN Free time? There's no such thing. It just comes in varying prices... ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]