Re: analyzing freebsd core dumps
hi... thanks for the feedback on this topic. the first step to clean the machine and check all connectors has been done yesterday. I hope that this will fix the problem, and that it's not some kind of hardware failure. to run tests with memtest is quite a problem, since the machine has high availability requirements. to take it off for nearly one hour for cleaning and checking during daily work of our company was a pain. 6 hours or more of RAM tests is not possible. is there some other way to detect hardware failure with less time consuming tool/ process? greetz olli Am Montag, den 06.10.2008, 13:45 -0400 schrieb Jerry McAllister: > On Mon, Oct 06, 2008 at 10:18:09AM -0700, Jeremy Chadwick wrote: > > > On Mon, Oct 06, 2008 at 08:04:07AM +0200, Mister Olli wrote: > > > hi list... > > > > > > I have a freebsd maschine running for more 6 months without any > > > problems. > > > the machine's only service is to be an openvpn gateway for a hand of > > > users. > > > > > > 2 weeks ago the first problems started. the openvpn exited with signal > > > 11 and 4 and core dumps were written. > > > > > > the same happend yesterday with the postfix/cleanup process, and the > > > suddenly the machine rebooted without any further log messages. > > > > > > what is the best way to troubleshoot the cause of this problem? > > > > Signal 11 happening "out of no where" on machines which have been > > running fine, most of the time, is a sign of hardware failure (usually > > RAM, but sometimes motherboard or PSU). The fact you got a reboot is > > also further evidence of this. > > > > http://www.freebsd.org/doc/en/books/faq/troubleshoot.html#SIGNAL11 > > > > I would recommend taking the machine offline and running something like > > memtest86+ on it for 6-7 hours. Any errors seen are a pretty good sign > > that you should replace the memory or the motherboard. You can > > download an ISO or floppy disk images here: > > > > http://www.memtest.org/ > > > > Bottom line is that this is probably a hardware issue. > > Could also be a contacts if it is not the actual memory or board. > A marginal contact where something is plugged in can over time > build up deposits that make it fail. Of course, this is still > a hardware problem, but can often be cured by reseating everything. > If it is bad enough, it could also be exacerbated by reseating > everything. > > jerry > > > > > -- > > | Jeremy Chadwickjdc at parodius.com | > > | Parodius Networking http://www.parodius.com/ | > > | UNIX Systems Administrator Mountain View, CA, USA | > > | Making life hard for others since 1977. PGP: 4BD6C0CB | > > > > ___ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mysql binlogs and their expiry times
On Wed, Oct 08, 2008 at 07:48:47AM +0200, Zbigniew Szalbot wrote: > Hi there, > > I hope someone can help. Due to they way my HD has been sliced I had > to move mysql database to /usr/local/mysql. All works fine. Last week > I added this entry > > #expire bin logs > expire_logs_days = 7 > > to /usr/local/mysql/my.cnf > > I restarted the MySQL server and now I have been waiting for the > binlogs to automatically expire but this is not happening: > > $ ls -l /usr/local/mysql > > -r--r--r-- 1 mysql mysql4954 Oct 1 07:30 my.cnf > drwx-- 2 mysql mysql1536 Sep 27 07:10 mysql > -rw-rw 1 mysql mysql 1073745213 Sep 2 04:07 mysql-bin.47 > -rw-rw 1 mysql mysql 1073746878 Sep 7 03:48 mysql-bin.48 > -rw-rw 1 mysql mysql 1073745707 Sep 11 20:07 mysql-bin.49 > -rw-rw 1 mysql mysql 175527890 Sep 12 08:32 mysql-bin.50 > -rw-rw 1 mysql mysql 128272 Sep 12 08:40 mysql-bin.51 > -rw-rw 1 mysql mysql 1073745119 Sep 17 04:35 mysql-bin.52 > -rw-rw 1 mysql mysql 1073747657 Sep 22 04:26 mysql-bin.53 > -rw-rw 1 mysql mysql 1073744456 Sep 27 03:28 mysql-bin.54 > -rw-rw 1 mysql mysql 986782722 Oct 1 07:32 mysql-bin.55 > -rw-rw 1 mysql mysql 1073742442 Oct 6 04:18 mysql-bin.56 > -rw-rw 1 mysql mysql 536487381 Oct 8 07:45 mysql-bin.57 > -rw-r- 1 mysql mysql 209 Oct 6 04:18 mysql-bin.index > > Do you have any idea why? Or if /usr/local/mysql/ is a correct > location for my.cnf file? Perhaphs it should go to /usr/local/etc/ ? > > If it matters, I use > $ pkg_info -Ix mysql-s > mysql-server-5.0.67 Multithreaded SQL database (server) > from ports. Shouldn't this question be going to the MySQL people and not FreeBSD? -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
KDE 4 Cannot run as regular user
Hello, I just installed KDE4 via ports and am getting errors upon attempting to start as a "regular" user. When I run startkde as root it works fine but I don't want to use root on this machine. Error Generated when started as a regular user $ startx /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: Shared object "libX11.so.6" not found, required by "xinit" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" The files are there $ ls -l /usr/local/lib/libXau.so /usr/local/lib/libX11.so lrwxr-xr-x 1 root wheel 11 Oct 6 03:09 /usr/local/lib/libX11.so -> libX11.so.6 lrwxr-xr-x 1 root wheel 11 Oct 6 03:06 /usr/local/lib/libXau.so -> libXau.so.6 $ ls -l /usr/local/lib/libXau.so.6 /usr/local/lib/libX11.so.6 -rwxr-xr-x 1 root wheel 1080722 Oct 6 03:09 /usr/local/lib/libX11.so.6 -rwxr-xr-x 1 root wheel10604 Oct 6 03:06 /usr/local/lib/libXau.so.6 $ cat .xinitrc exec /usr/local/kde4/bin/startkde $ uname -a FreeBSD xxx.xxx.net 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #2: Mon Oct 6 02:45:38 MDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/xxx i386 I'm sure this is a very little issue but I appreciate your patience and help in resolving this issue. Best Regards, Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: freebsd-questions Digest, Vol 236, Issue 8: 9. Re: detecting monitor's sync and refresh rate? (Lowell Gilbert)
> From: [EMAIL PROTECTED] > Subject: freebsd-questions Digest, Vol 236, Issue 8 > To: freebsd-questions@freebsd.org > Date: Wed, 8 Oct 2008 00:14:41 + > > Send freebsd-questions mailing list submissions to > freebsd-questions@freebsd.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of freebsd-questions digest..." > > > Message: 9 > Date: Tue, 07 Oct 2008 16:42:07 -0400 > From: Lowell Gilbert <[EMAIL PROTECTED]> > Subject: Re: detecting monitor's sync and refresh rate? > To: Anton Shterenlikht <[EMAIL PROTECTED]> > Cc: freebsd-questions@freebsd.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=us-ascii > > Anton Shterenlikht <[EMAIL PROTECTED]> writes: > > > I've a monitor (Mobi M15MPC) with no docs. > > I've searched the net but cannot find any info on sync and refresh rate for > > it. > > I've done Xorg -configure, but testing with X -config xorg.conf.new > > shows screen shifted to the side and very nasty blinking, from which > > I deduced that perhaps I need to specify correct sync, refresh and mode. > > > > Are there any commands to get sync and refresh from the monitor? > > If X can't probe the monitor for its settings, I wouldn't trust any > other method of probing it either. > > Not to overlook the obvious: are the settings written on the back of > the monitor? > > You can always try Google... > > -- > Lowell Gilbert, embedded/networking software engineer, Boston area > http://be-well.ilk.org/~lowell/ > > I have the same problem only when the screen shuts off. The problem doesn't exist if I switch to a virtual terminal. It also corrects itself once I login or start using the gui. Lowell has a point here. It may be your monitor. I'm using a generic monitor and the problem also exists with X.org on Debian Linux with the same monitor. _ Get more out of the Web. Learn 10 hidden secrets of Windows Live. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
mysql binlogs and their expiry times
Hi there, I hope someone can help. Due to they way my HD has been sliced I had to move mysql database to /usr/local/mysql. All works fine. Last week I added this entry #expire bin logs expire_logs_days = 7 to /usr/local/mysql/my.cnf I restarted the MySQL server and now I have been waiting for the binlogs to automatically expire but this is not happening: $ ls -l /usr/local/mysql -r--r--r-- 1 mysql mysql4954 Oct 1 07:30 my.cnf drwx-- 2 mysql mysql1536 Sep 27 07:10 mysql -rw-rw 1 mysql mysql 1073745213 Sep 2 04:07 mysql-bin.47 -rw-rw 1 mysql mysql 1073746878 Sep 7 03:48 mysql-bin.48 -rw-rw 1 mysql mysql 1073745707 Sep 11 20:07 mysql-bin.49 -rw-rw 1 mysql mysql 175527890 Sep 12 08:32 mysql-bin.50 -rw-rw 1 mysql mysql 128272 Sep 12 08:40 mysql-bin.51 -rw-rw 1 mysql mysql 1073745119 Sep 17 04:35 mysql-bin.52 -rw-rw 1 mysql mysql 1073747657 Sep 22 04:26 mysql-bin.53 -rw-rw 1 mysql mysql 1073744456 Sep 27 03:28 mysql-bin.54 -rw-rw 1 mysql mysql 986782722 Oct 1 07:32 mysql-bin.55 -rw-rw 1 mysql mysql 1073742442 Oct 6 04:18 mysql-bin.56 -rw-rw 1 mysql mysql 536487381 Oct 8 07:45 mysql-bin.57 -rw-r- 1 mysql mysql 209 Oct 6 04:18 mysql-bin.index Do you have any idea why? Or if /usr/local/mysql/ is a correct location for my.cnf file? Perhaphs it should go to /usr/local/etc/ ? If it matters, I use $ pkg_info -Ix mysql-s mysql-server-5.0.67 Multithreaded SQL database (server) from ports. Thanks! -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
bash script on FreeBSD
Dear all, I am going to extract field username and UID from /etc/passwd and passed into some scripts. Let say I got line admin 100 admin2 200 admin3 300 admin4 400 and then I want to echoing into screen: admin has uid 100 admin2 has uid 200 admin3 has uid 300 admin4 has uid 400 How do I make this with bash script? Thank you Kalpin Erlangga Silaen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can't get soundcard to work
On Tue, 2008-10-07 at 17:39 -0400, Lowell Gilbert wrote: > Aniruddha <[EMAIL PROTECTED]> writes: > > > I've read the "Setting Up the Sound Card" part in the FreeBSD handbook > > unfortunately I can't get my Intel HDA card to work. Any ideas would be > > appreciated! Here's some relevant output: ... > I think you will need a somewhat recent FreeBSD to support that > controller. What version are you running? > > What drivers have you loaded? snd_driver? Thanks for the help. I'm running FreeBSD 7-1 BETA. From what I can tell my card should be supported. "cat dmesg > /dev/dsp" did give me sound the first time. Any thoughts on how to troubleshoot this would be welcome. -- Regards, Aniruddha ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
sysinstall
hi sirs, apologize me for disturbing the list but i really have problem with adding packages using sysinstall. i start my day with sysinstall configPackages and ending with loop at media selection site. i can not go out from that menu. i do not know what wrong i had done. my box is 7.0-RELEASE FreeBSD thanks in advance for any helps and hints best regards, psr ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Strange memory/cpu behavior
On Tue, Oct 07, 2008 at 09:10:07PM -0700, Yuri wrote: > Jeremy Chadwick wrote: >> I'm a little confused. I was mainly referring to your statement: >> >> "There is one large active process slowly growing in memory from 500MB >> to 1300MB, not reading or writing any files." >> >> What field in top(1) were you looking at to determine this kind of >> growth? >> > > Sorry, I misunderstood the question first. > Memory is taken from the SIZE column, but RES is always very close. Generally speaking, you do not want to be looking at SIZE to determine how much memory a process is taking up -- you want to look at RES. SIZE includes memory shared across all processes which rely on loaded shared objects. For example, if you had 20 processes running which were all linked with libssh.so.4, only one copy of libssh.so.4 would exist in memory, and all 20 of those processes would share it. On later versions of FreeBSD 7.0 and on 7.1, there is the procstat(1) utility which can be used to break down memory usage. As for your CPU usage issue, I'm not quite sure what you're referring to. It might help if we could see some actual output from top(1) pointing to what you're describing. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: VNC server embedded into Xorg server
Hi, Sorry for jumping in the middle of the thread. > There was a port called net/vnc that contained a vnc.so file. That file > could be loaded into the Xorg server and then I was able to monitor the > X desktop with VNC. > > Now I'm using gnome, and gnome2-fifth-toe installs tightvnc. It > conflicts with net/vnc. So I cannot install net/vnc. What other options > I have to run an X server? I would: - deinstall net/vnc - install gnome and let it install tinyvnc - manually deinstall tinyvnc - install net/vnc > The only extra wish is that the X server must be able to start > automatically, e.g. without logging into gnome. I need this because the > X server will be located at a distant location and I have to be able to > use it after a system restart. Especially with gnome, the X server starts before you do any authentication, when gnome present the loggin window, X has already started. To do X over vnc remotely, you need quite some amount of bandwidth. Are you sure you need a graphical access? X protocol is designed natively to run over the network, so you may not need vnc. With X you can have an application running on your remote computer, with the display coming to your desktop machine (if your desktop machine is some Windows thing, there are good "X emulators for Windows"). If you really want to keep your setting, there should exist a gnome startup script that you can hack to run vnc somewhere between the line starting X and the line starting gnome authentication. Best regards, Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Script works fine from CLI, but not when Cron'd
> > I've got a script to backup my MySQL databases, which works absolutely > > fine from the command line, but when I add it in to root's cronjobs it > > always fails with "mysqldump: not found" - what am I doing wrong? > > Things started from cron inherit a different PATH. Either add the > appropriate directories to PATH or specify the full path to mysqldump. In a script aimed to be run by cron, try to always use full path to the commands. It's the safest solution. Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Strange memory/cpu behavior
Jeremy Chadwick wrote: I'm a little confused. I was mainly referring to your statement: "There is one large active process slowly growing in memory from 500MB to 1300MB, not reading or writing any files." What field in top(1) were you looking at to determine this kind of growth? Sorry, I misunderstood the question first. Memory is taken from the SIZE column, but RES is always very close. Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Strange memory/cpu behavior
On Tue, Oct 07, 2008 at 04:43:09PM -0700, Yuri wrote: > Jeremy Chadwick wrote: >> Regarding the "memory bloat", what field in top(1) are you basing this >> on? >> > > For the total CPU usage I used > CPU: 100.0% user Active... all others were zeros. > For the process CPU I looked at WCPU. I'm a little confused. I was mainly referring to your statement: "There is one large active process slowly growing in memory from 500MB to 1300MB, not reading or writing any files." What field in top(1) were you looking at to determine this kind of growth? -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
question about "sound-juicer"
Guys, There's a very useful audio app called "sound-juicer"; I have it installed but whenever I try to use it, a popup warns: "Could not read the CD\n Sound juicer could not access the CD-ROM Device '1,1,0' Reason: No such file or directory" I've got two CD/DVD optical drives; both are correctly configured in /etc/fstab and in /media and in my home directory. I'm stuck. Any ideas on what's wrong? thanks in advance, gary -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: something wrong with freebsd-current maillist?
Hi, I unsubscribed - and am back again. Another try to unsubscribe does not work. Cant log in on the Webtool, do not get an answer via mail. Whats going on? Regards sworn - Original Message - From: "Gelsema, P (Patrick) - FreeBSD" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; Sent: Saturday, May 19, 2007 3:48 PM Subject: something wrong with freebsd-current maillist? Hi, I sent about an hour ago an email to the freebsd-current maillinglist. This email has not yet arrived to the list, I can see the email leaving my mailserver and being delivered to one of the freebsd boxes but after that it seems stuck. Also when I look at the archives the last message date is Wed May 16 20:06:09 UTC 2007. I got an issue with the current that I cannot make update anymore. I get the following error: /libexec/ld-elf.so.1: /lib/libthr.so.2: unsupported file layout. I tried rebuilding world, installing cvsup from ports but both failed. Any pointers appreciated. hulk# uname -a FreeBSD hulk.superhero.nl 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Fri May 18 17:10:44 CEST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC amd64 hulk# pwd /usr/src hulk# make update -- Running /usr/bin/csup -- /libexec/ld-elf.so.1: /lib/libthr.so.2: unsupported file layout *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. hulk# Rgds, Patrick ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Strange memory/cpu behavior
Jeremy Chadwick wrote: Regarding the "memory bloat", what field in top(1) are you basing this on? For the total CPU usage I used CPU: 100.0% user Active... all others were zeros. For the process CPU I looked at WCPU. Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Coretemp seems to be off quite a bit
>On Oct 7, 2008, at 12:51 PM, Jeremy Chadwick wrote: >... >I remounted the heatsink (side note: curse you, Intel - was that meant >to be funny?), and didn't apply a single bit of paste other than what >came on it. FWIW: one needs to be careful with the application of heat sink "paste" if one doesn't want to do more harm than good. A very many years ago, when I was young enough to be a practicing engineer, National Semiconductor published some notes about various component to heat sink mounting methodologies. There were two results that stood out. First, using too much heat sink compound is worse than using nothing at all. The reason is that metal to metal is quite good and the proper application of of compound should only just fill the voids where the two "flat" surfaces don't touch. Second, metal to metal is quite good - as evidenced by a very large jump in heat conductivity when the component was surface soldered to the heat sink. -- Walter M. Pawley <[EMAIL PROTECTED]> Wump Research & Company 676 River Bend Road, Roseburg, OR 97471 541-672-8975 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
adding a slice to gmirror instead of a whole disk, will it work?
Hi Guys Will adding a slice to a gmirror instead of a whole disk work? The slice is big enough to accommodate the old disk. Thanks Craig B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Strange Core Dump Error Message on a FreeBSD6.3 System
On Tue, Oct 07, 2008 at 04:15:24PM -0500, Martin McCormick wrote: > I am running some C code I wrote on a couple of > FreeBSD6.3 systems, one of which has never exhibited this > message and the other has now done it twice in about 6 months. > The error is as follows: > > mem.c:877: INSIST(ctx->stats[i].gets == 0U) failed. > Abort trap (core dumped) > > Something obviously is wrong regarding memory allocation > but why this one system? > > Is there anything I can look for in netstat -m that > might help me solve the puzzle? > > Thanks. Try freebsd-hackers for this sort of question. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Strange memory/cpu behavior
On Tue, Oct 07, 2008 at 01:54:13PM -0700, Yuri wrote: > I have STABLE-71 machine with 2GB memory and single 2GHz AMD3200 CPU. > > There is one large active process slowly growing in memory from 500MB to > 1300MB, not reading or writing any files. > There are many dormant processes almost not running at all. > Swap size remains constant (185MB). Total physical memory used remains > 2GB (whole memory used). > > ps shows that the active process only takes 15-18% CPU. But total CPU > consumption on the machine is 100% (user). > > Since the active process grows but swap+physical memory doesn't grow I > assume that OS pushes out other processes code since it's unchanged on > disk. > > Why such operation is so expensive and takes 80-85% CPU? > Why total of all user processes CPU consumption is ~20% but total > CPU(user) consumption shows as 100%? Shouldn't they be the same. Regarding the "memory bloat", what field in top(1) are you basing this on? -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Mathematica fonts (fbsd 7.0, mma 6.03)
Hi, has anyone tried this combination? It seems to have problems dealing with fonts created under mac and windows mathematica. Thanks, Rich ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
how to connect kde4 to my mail server...??
I didn't set up my LAN and the guy who did, didn't explain enough to help me get too far with things-kde3 in /usr/local/bin to everything-kde4 in /usr/local/kde4/bin/* I just got kde4 kmail set up, but it does not see mail on my mail server:: aristotle.thought.org. Anybody help me with this? gary PS: i don't think i have a typo. -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: how to break portsnap
Aagh! I thought the snapshot was the thing being downloaded! Here I was double-checking my key and the like. I sort of would've expected the process to include overwriting everything local with the new stuff. My mistake, obviously. Sometimes one does need the obvious pointed out to them, thanks. Steve On Tue, Oct 7, 2008 at 2:17 PM, RW <[EMAIL PROTECTED]> wrote: > On Tue, 7 Oct 2008 13:56:37 -0700 > "Steve Franks" <[EMAIL PROTECTED]> wrote: > >> I've googled high & low but I cannot find much other that "this cannot >> happen" replies. I've got a dual boot to amd64 and i386. The amd64 >> hasn't been able to portsnap fetch or cron since march. The i386 I >> just installed, and it portsnap's fine, so it's not a firewall or >> related issue. I've checked my key and it looks ok. What am I >> missing? >> >>... >> Fetching 13708 new ports or files... /usr/sbin/portsnap: cannot open >> e53d7ea3f6fbc2e6a87a1f194ea623fc6b27c74d9aecfd61e0d765e86d861ad5.gz: >> No such file or directory >> snapshot is corrupt. > > It's pretty self-explanatory, the snapshot is corrupt. > > delete /var/db/portsnap/* and then start-again by do a "fetch" and > "extract". > > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: gimp: all output plugins crash
Le 07/10/2008 à 14:35:11-0700, Yuri a écrit > Every time I am trying to save some image all input plugins crash with > the message like this: > /usr/local/libexec/gimp/2.2/plug-ins/jpeg: fatal error: Segmentation > fault: 11 > > I use gimp-2.4.7,2. > > I reported the problem to [EMAIL PROTECTED] (listed as maintainer) but > got no response. > > How can I reach those who is responsible for the port? > Anyone has the same problem? > I'm not a developper, but no I don't have any problem with gimp, everything work fine for me. I use gimp frequently on a FreeBSD 7.1-PRE and gimp never crash. I can say gimp is one of those big applications (firefox, OpenOffice etc.) most stable, never crash. Have you all your ports up2date ? What's version of FreeBSD you running ? Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Heure local/Local time: Mar 7 oct 2008 23:52:17 CEST ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Help With [seemingly] Simple Problem
Xenophan <[EMAIL PROTECTED]> writes: > Alright, this is one of those moments when a normal person is forced to > become terminal typing freak (sorry guys =)) against their will... > > I have a FreeBSD7 server box in my garage that serves the computers on my > network with files. It has been a godsend: 2 1TB SATA drives raid-1'd and I > have a peace of mind that all my files are secure in one place in the house > that has doubled as my office. > > The box has basic non-gui install of FreeBSD7 and I access it through WinSCP > from other boxes around the house. Voila! So easy! > > Well it was until I decided to bring some order to it - sort files in the > right directories. This is usually a snap in XP, but UNIX would not allow > things to be simple I guess: When I want to empty out few folders into > another folder ("DUMP") and there are same files in both folders (one I am > copying from (Downloads) and one I am moving them to(DUMP)) I get an error: > > [HTML]General failure (server should provide error description). > Error code: 4 > Error message from server: Failure > Request code: 18[/HTML] That error is being displayed by a Windows application? I'm guessing you're using Samba on the server, and that there may be more information in the Samba logs. > My guess was that it found similar named files and flipped out only leaving > me the options to skip or abort (I skipped). So I decided to do it through > command line via Putty. Friend of mine suggested this command through > bash:[HTML] mv Downloads/* .[/HTML] Sounds about right. > Effect was the same: I get a polite error notifying me that: : > [HTML]FileName.extension: Directory not empty[/HTML] In future, try to cut and paste the *exact* text from the terminal window (in this case, the Putty window). I'll take a guess, but I'm working in the dark a bit here. Are there any sub-directories in the "Downloads" directory? Do you have the permissions to remove them? Make sure that the user account (the one under which you are executing the command) has write permissions to the directories being modified. > Whoopty do! > > XP would be nice enough to give me options: name of conflicting file; sizes; > options: Abort, Overwrite, Skip > > These options are crucial because some files may have changed and I may want > to rename the file and save it as a newer version while keeping the old one. > I usually find this out by looking at the file sizes. > > Is there a way to do the same from command line? Many. I would recommend using rsync, which is available from ports. Good luck. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: how to break portsnap
On Tue, Oct 7, 2008 at 4:56 PM, Steve Franks <[EMAIL PROTECTED]> wrote: > I've googled high & low but I cannot find much other that "this cannot > happen" replies. I've got a dual boot to amd64 and i386. The amd64 > hasn't been able to portsnap fetch or cron since march. The i386 I > just installed, and it portsnap's fine, so it's not a firewall or > related issue. I've checked my key and it looks ok. What am I > missing? I've had this problem before, and it turns out it was a bad CPU in my case. I would imagine bad RAM would play a part in this as well. You may want to try to run Memtest. Regards, -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Can't get soundcard to work
Aniruddha <[EMAIL PROTECTED]> writes: > I've read the "Setting Up the Sound Card" part in the FreeBSD handbook > unfortunately I can't get my Intel HDA card to work. Any ideas would be > appreciated! Here's some relevant output: > > sndstat: >> FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) >> Installed devices: >> pcm0: at memory 0xff9ec000 >> irq 17 kld snd_hda [20080420_0052] [MPSAFE] (mixer only) >> pcm1: at memory 0xffafc000 >> irq 19 kld snd_hda [20080420_0052] [MPSAFE] (1p:1v/1r:1v channels duplex) > > from dmesg: >> pcm1: mem >> 0xffafc000-0xffaf irq 19 at device 27.0 on pci0 >> pcm1: [ITHREAD] >> pcib2: irq 16 at device 28.0 on pci0 >> pci4: on pcib2 >> pcib3: irq 19 at device 28.3 on pci0 >> pci3: on pcib3 > > cat dmesg > /dev/dsp >> su: /dev/dsp: Operation not supported > > from pciconf: >> [EMAIL PROTECTED]:0:27:0:class=0x040300 card=0x81d81043 chip=0x27d88086 >> rev=0x01 hdr=0x00 >> vendor = 'Intel Corporation' >> device = '82801G (ICH7 Family) High Definition Audio' >> class = multimedia > >> [EMAIL PROTECTED]:5:0:0: class=0x03 card=0xe630174b chip=0x95051002 >> rev=0x00 hdr=0x00 >> vendor = 'ATI Technologies Inc' >> class = display >> subclass = VGA >> [EMAIL PROTECTED]:5:0:1: class=0x040300 card=0xaa18174b chip=0xaa181002 >> rev=0x00 hdr=0x00 >> vendor = 'ATI Technologies Inc' >> class = multimedia I think you will need a somewhat recent FreeBSD to support that controller. What version are you running? What drivers have you loaded? snd_driver? -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
gimp: all output plugins crash
Every time I am trying to save some image all input plugins crash with the message like this: /usr/local/libexec/gimp/2.2/plug-ins/jpeg: fatal error: Segmentation fault: 11 I use gimp-2.4.7,2. I reported the problem to [EMAIL PROTECTED] (listed as maintainer) but got no response. How can I reach those who is responsible for the port? Anyone has the same problem? Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: how to break portsnap
On Tue, 7 Oct 2008 13:56:37 -0700 "Steve Franks" <[EMAIL PROTECTED]> wrote: > I've googled high & low but I cannot find much other that "this cannot > happen" replies. I've got a dual boot to amd64 and i386. The amd64 > hasn't been able to portsnap fetch or cron since march. The i386 I > just installed, and it portsnap's fine, so it's not a firewall or > related issue. I've checked my key and it looks ok. What am I > missing? > >... > Fetching 13708 new ports or files... /usr/sbin/portsnap: cannot open > e53d7ea3f6fbc2e6a87a1f194ea623fc6b27c74d9aecfd61e0d765e86d861ad5.gz: > No such file or directory > snapshot is corrupt. It's pretty self-explanatory, the snapshot is corrupt. delete /var/db/portsnap/* and then start-again by do a "fetch" and "extract". ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: From konsole, konq:
On Tue, Oct 07, 2008 at 09:33:02PM +0100, RW wrote: > On Tue, 7 Oct 2008 13:17:37 -0700 > Gary Kline <[EMAIL PROTECTED]> wrote: > > > > > > This is getting stranger and stranger. I did a pkg_delete -f > > kde, but/ > > p8 13:08 [5146] which konqueror > > /usr/local/bin/konqueror > > That's normal, the kde3 port is just a metaport - a dummy port that > that causes a collection ports to be built as dependencies. Try using > pkg_cutleaves. Sure, but you'd think the the metaport would have the slew of subport delete everything. Thanks for the tip on cutleaves. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Strange Core Dump Error Message on a FreeBSD6.3 System
I am running some C code I wrote on a couple of FreeBSD6.3 systems, one of which has never exhibited this message and the other has now done it twice in about 6 months. The error is as follows: mem.c:877: INSIST(ctx->stats[i].gets == 0U) failed. Abort trap (core dumped) Something obviously is wrong regarding memory allocation but why this one system? Is there anything I can look for in netstat -m that might help me solve the puzzle? Thanks. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: stupid xfce clock question
On Mon, Oct 06, 2008 at 04:39:20AM -0400, Aryeh M. Friedman wrote: > I work remotely with a company that is across the international date > line from me and I can do the math in my head but want to know if it is > possible to add a clock to my xfce panel that shows the time their (and > keep the one that has my time on it) It's not as elegant as an additional clocklet in a task bar, but how about running multiple instances of xclock instead? #!/bin/sh # tzxclock -- run a timezoned instance of xclock env TZ=$1 xclock -digital -twentyfour -title $1 That wouldn't depend on the specifics of the window manager, and can still be customized with multiple flags like -fn, -fg, -bg, -geometry, -strftime etc... Regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
how to break portsnap
I've googled high & low but I cannot find much other that "this cannot happen" replies. I've got a dual boot to amd64 and i386. The amd64 hasn't been able to portsnap fetch or cron since march. The i386 I just installed, and it portsnap's fine, so it's not a firewall or related issue. I've checked my key and it looks ok. What am I missing? Best, Steve dystant# portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found. Fetching snapshot tag from portsnap1.FreeBSD.org... done. Fetching snapshot metadata... done. Updating from Mon Mar 3 07:50:14 MST 2008 to Tue Oct 7 12:43:25 MST 2008. Fetching 0 metadata patches. done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 12365 patches.. done. Applying patches... done. Fetching 13708 new ports or files... /usr/sbin/portsnap: cannot open e53d7ea3f6fbc2e6a87a1f194ea623fc6b27c74d9aecfd61e0d765e86d861ad5.gz: No such file or directory snapshot is corrupt. dystant# ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Strange memory/cpu behavior
I have STABLE-71 machine with 2GB memory and single 2GHz AMD3200 CPU. There is one large active process slowly growing in memory from 500MB to 1300MB, not reading or writing any files. There are many dormant processes almost not running at all. Swap size remains constant (185MB). Total physical memory used remains 2GB (whole memory used). ps shows that the active process only takes 15-18% CPU. But total CPU consumption on the machine is 100% (user). Since the active process grows but swap+physical memory doesn't grow I assume that OS pushes out other processes code since it's unchanged on disk. Why such operation is so expensive and takes 80-85% CPU? Why total of all user processes CPU consumption is ~20% but total CPU(user) consumption shows as 100%? Shouldn't they be the same. Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Sound troubles with high res modes in console
Hello, everybody! The system is ASUS "A3500L", old laptop on Intel Montara platform, running 7.1-PRERELEASE I have one trouble while listening music with console players. Sound became crippled when I have output to STDOUT or whenever I use text-scrolling in editors or switching between consoles. This trouble appeared right after I changed vidcontrol setting to 1024x786 mode. In order to get VESA modes I recompilled my kernel with these additional options: >cat /sys/i386/conf/CUSTOM # not sure if I should use these actually :) ... device drm device i915drm device acpi_video options SC_PIXEL_MODE options VESA ... Also I put 'allscreens_flags="-i mode MODE_279"' in /etc/rc.conf to have 1024x768 mode in my consoles. >vidcontrol -i mode ... 277 (0x115) 0x000f G 800x600x32 18x16 0xa 64k 64k 0xf000 32576k 279 (0x117) 0x000f G 1024x768x16 1 8x16 0xa 64k 64k 0xf000 32576k 280 (0x118) 0x000f G 1024x768x32 1 8x16 0xa 64k 64k 0xf000 32576k I'm loading sound module for my Intel ICH4 chipset: >cat /boot/loader.conf acpi_video_load="YES" snd_ich_load="YES" # Intel ICH > kldstat kernel snd_ich.ko sound.ko acpi_video.ko acpi.ko atapicam.ko pflog.ko pf.ko logo_saver.ko When I'm switching vidcontrol mode back to default setting, playback becames smooth again. So, is there any way to get smooth playback in console with high res settings? Any advises will be much appreciated. Thanks! -- Best regards, Jeff _ ( ) ASCII ribbon campaign X - against HTML, vCards and / \ - proprietary attachments in e-mail cpu I686_CPU ident CUSTOM makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options INET# InterNETworking options INET6 # IPv6 communications protocols options SCTP# Stream Control Transmission Protocol options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL# Enable gjournal-based UFS journaling options MD_ROOT # MD is a potential root device options NFSCLIENT # Network Filesystem Client options NFSSERVER # Network Filesystem Server options NFSLOCKD# Network Lock Manager options NFS_ROOT# NFS usable as /, requires NFSCLIENT options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS# Pseudo-filesystem framework options GEOM_PART_GPT # GUID Partition Tables. options COMPAT_43TTY# BSD 4.3 TTY compat [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV# install a CDEV entry in /dev options ADAPTIVE_GIANT # Giant mutex is adaptive. options STOP_NMI# Stop CPUS using NMI instead of IPI options AUDIT # Security event auditing device apic# I/O APIC device cpufreq device eisa device pci device fdc device ata device atadisk # ATA disk drives device ataraid # ATA RAID drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives options ATA_STATIC_ID # Static device numbering device scbus # SCSI bus (required for SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass# Passthrough device (direct SCSI access) device
Can't get soundcard to work
I've read the "Setting Up the Sound Card" part in the FreeBSD handbook unfortunately I can't get my Intel HDA card to work. Any ideas would be appreciated! Here's some relevant output: sndstat: > FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) > Installed devices: > pcm0: at memory 0xff9ec000 > irq 17 kld snd_hda [20080420_0052] [MPSAFE] (mixer only) > pcm1: at memory 0xffafc000 > irq 19 kld snd_hda [20080420_0052] [MPSAFE] (1p:1v/1r:1v channels duplex) from dmesg: > pcm1: mem > 0xffafc000-0xffaf irq 19 at device 27.0 on pci0 > pcm1: [ITHREAD] > pcib2: irq 16 at device 28.0 on pci0 > pci4: on pcib2 > pcib3: irq 19 at device 28.3 on pci0 > pci3: on pcib3 cat dmesg > /dev/dsp > su: /dev/dsp: Operation not supported from pciconf: > [EMAIL PROTECTED]:0:27:0: class=0x040300 card=0x81d81043 chip=0x27d88086 > rev=0x01 hdr=0x00 > vendor = 'Intel Corporation' > device = '82801G (ICH7 Family) High Definition Audio' > class = multimedia > [EMAIL PROTECTED]:5:0:0: class=0x03 card=0xe630174b chip=0x95051002 > rev=0x00 hdr=0x00 > vendor = 'ATI Technologies Inc' > class = display > subclass = VGA > [EMAIL PROTECTED]:5:0:1: class=0x040300 card=0xaa18174b chip=0xaa181002 > rev=0x00 hdr=0x00 > vendor = 'ATI Technologies Inc' > class = multimedia -- Regards, Aniruddha ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: detecting monitor's sync and refresh rate?
Anton Shterenlikht <[EMAIL PROTECTED]> writes: > I've a monitor (Mobi M15MPC) with no docs. > I've searched the net but cannot find any info on sync and refresh rate for > it. > I've done Xorg -configure, but testing with X -config xorg.conf.new > shows screen shifted to the side and very nasty blinking, from which > I deduced that perhaps I need to specify correct sync, refresh and mode. > > Are there any commands to get sync and refresh from the monitor? If X can't probe the monitor for its settings, I wouldn't trust any other method of probing it either. Not to overlook the obvious: are the settings written on the back of the monitor? You can always try Google... -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: From konsole, konq:
On Tue, 7 Oct 2008 13:17:37 -0700 Gary Kline <[EMAIL PROTECTED]> wrote: > > This is getting stranger and stranger. I did a pkg_delete -f > kde, but/ > p8 13:08 [5146] which konqueror > /usr/local/bin/konqueror That's normal, the kde3 port is just a metaport - a dummy port that that causes a collection ports to be built as dependencies. Try using pkg_cutleaves. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: From konsole, konq:
On Tue, Oct 07, 2008 at 02:43:05PM -0500, Matt wrote: > On Tue, Oct 7, 2008 at 2:33 PM, Gary Kline <[EMAIL PROTECTED]> wrote: > > On Tue, Oct 07, 2008 at 06:01:15PM +0100, RW wrote: > >> On Tue, 7 Oct 2008 09:13:33 -0700 > >> Gary Kline <[EMAIL PROTECTED]> wrote: > >> > >> > > >> > Here's what I get con my knosole: > >> > > >> > > >> > p8 1:20 [5112] konqueror > >> > konqueror: WARNING: Can't > >> > open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio > >> > (KMimeType): WARNING: KServiceType::offers : servicetype not found > >> > kio (KMimeType): WARNING: KServiceType::offers : servicetype not > >> > found p8 9:00 [5113] konqueror > >> > >> Is ~/.kde from kde 3.x? If it is I'd try renaming it and starting over. > >> > >> When you use KDE 4 at the same time as KDE 3, it uses a separate .kde4 > >> directory. > > > > > >I don't see any .kde4 dir. I finally did move .kde to .KDE.OLD > >I didn't want to lose all my bookmarks and mail files... > > > >I'll try again: see what happens. > > > Also, make sure your path includes the /usr/local/kde4/bin directory, > preferably listed before /usr/local/bin if you have KDE3 installed as > well. > > Matt This is getting stranger and stranger. I did a pkg_delete -f kde, but/ p8 13:08 [5146] which konqueror /usr/local/bin/konqueror ls -ls konqueror in /usr/local/kde4/bin gives me: 8 -rwxr-xr-x 1 root wheel 7541 Oct 3 22:39 konqueror p8 13:12 [5151] lt `which konqueror` -r-xr-xr-x 1 root wheel 4028 Oct 3 19:38 /usr/local/bin/konqueror So this tells me I should not have been in kde while doing my pkg_delete. Any ideas how to get rid of all the kde3 binaries? i means automagically:) gary -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Coretemp seems to be off quite a bit
On Oct 7, 2008, at 12:51 PM, Jeremy Chadwick wrote: It would help if we could see some of his sysctl date, specifically these: debug.cpufreq.* dev.cpufreq.[0-9].* dev.cpu.[0-9].freq dev.cpu.[0-9].freq_levels $ sysctl debug.cpufreq debug.cpufreq.verbose: 0 debug.cpufreq.lowest: 0 $ sysctl dev.cpufreq.0 dev.cpufreq.0.%driver: cpufreq dev.cpufreq.0.%parent: cpu0 $ sysctl dev.cpufreq.1 dev.cpufreq.1.%driver: cpufreq dev.cpufreq.1.%parent: cpu1 $ sysctl dev.cpu | grep freq dev.cpu.0.freq: 2984 dev.cpu.0.freq_levels: 2984/-1 2611/-1 2238/-1 1865/-1 1492/-1 1119/-1 746/-1 373/-1 For all we know, it could be the heatsink/fan is not properly mounted, or there's too much thermal paste. Who knows. I remounted the heatsink (side note: curse you, Intel - was that meant to be funny?), and didn't apply a single bit of paste other than what came on it. I don't have the ability to boot Windows on this system, or at least not without some pain (it's a server with no extra drive space I could readily set aside to install it, for starters). Since fiddling with the heatsink, the temperature was down to 45C at boot. I did another "make -j4 buildworld" and it got up to 58C. Since killing that build, it's slowly working its way back into the high 40s (currently bouncing between 48 and 49). -- Kirk Strauser ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: From konsole, konq:
On Tue, Oct 07, 2008 at 06:01:15PM +0100, RW wrote: > On Tue, 7 Oct 2008 09:13:33 -0700 > Gary Kline <[EMAIL PROTECTED]> wrote: > > > > > Here's what I get con my knosole: > > > > > > p8 1:20 [5112] konqueror > > konqueror: WARNING: Can't > > open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio > > (KMimeType): WARNING: KServiceType::offers : servicetype not found > > kio (KMimeType): WARNING: KServiceType::offers : servicetype not > > found p8 9:00 [5113] konqueror > > Is ~/.kde from kde 3.x? If it is I'd try renaming it and starting over. > > When you use KDE 4 at the same time as KDE 3, it uses a separate .kde4 > directory. Hmm. I mv'd .kde elsewhere. Also /tmp and /var/tmp are free. But" p8 12:49 [5125] kontact just hangs.Any ideas? -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: From konsole, konq:
On Tue, Oct 7, 2008 at 2:33 PM, Gary Kline <[EMAIL PROTECTED]> wrote: > On Tue, Oct 07, 2008 at 06:01:15PM +0100, RW wrote: >> On Tue, 7 Oct 2008 09:13:33 -0700 >> Gary Kline <[EMAIL PROTECTED]> wrote: >> >> > >> > Here's what I get con my knosole: >> > >> > >> > p8 1:20 [5112] konqueror >> > konqueror: WARNING: Can't >> > open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio >> > (KMimeType): WARNING: KServiceType::offers : servicetype not found >> > kio (KMimeType): WARNING: KServiceType::offers : servicetype not >> > found p8 9:00 [5113] konqueror >> >> Is ~/.kde from kde 3.x? If it is I'd try renaming it and starting over. >> >> When you use KDE 4 at the same time as KDE 3, it uses a separate .kde4 >> directory. > > >I don't see any .kde4 dir. I finally did move .kde to .KDE.OLD >I didn't want to lose all my bookmarks and mail files... > >I'll try again: see what happens. > Also, make sure your path includes the /usr/local/kde4/bin directory, preferably listed before /usr/local/bin if you have KDE3 installed as well. Matt ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: From konsole, konq:
On Tue, Oct 07, 2008 at 06:01:15PM +0100, RW wrote: > On Tue, 7 Oct 2008 09:13:33 -0700 > Gary Kline <[EMAIL PROTECTED]> wrote: > > > > > Here's what I get con my knosole: > > > > > > p8 1:20 [5112] konqueror > > konqueror: WARNING: Can't > > open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio > > (KMimeType): WARNING: KServiceType::offers : servicetype not found > > kio (KMimeType): WARNING: KServiceType::offers : servicetype not > > found p8 9:00 [5113] konqueror > > Is ~/.kde from kde 3.x? If it is I'd try renaming it and starting over. > > When you use KDE 4 at the same time as KDE 3, it uses a separate .kde4 > directory. I don't see any .kde4 dir. I finally did move .kde to .KDE.OLD I didn't want to lose all my bookmarks and mail files... I'll try again: see what happens. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kgdb debugging
On Tue, Oct 7, 2008 at 10:53 AM, alan yang <[EMAIL PROTECTED]> wrote: > Could people shed some light how to get remote debugging going, must > be something that i overlooked, really appreciate. > Do you have the right flags for sio or uart in /boot/device.hints? I have this (for a recent HEAD):: hint.uart.0.flags="0x90" You are probably using sio as it is a FreeBSD7 system. From the man page of sio (the part that talks about flags):: ... 0x00080 use this port for remote kernel debugging ... Make sure you have this bit set. Regards, Navdeep > Two FreeBSD7 systems, target and development, connected with null > modem cable on each's COM1. > > step 1) >- rebuild kernel with following options: >options DDB >options KDB >options GDB > >makeoptions DEBUG=-g > > step 2) >- from development system >cd to /usr/src/sys/i386/comiple/MYKERNEL >kgdb -r /dev/cuad0 kernel.debug > >it displays the following: >Switching to remote protocol >Ignoring packet error, continuing >. >Couldn't establish connection to remote target >Malformed response to offset query, timeout > > step 3) >- from targetsystem: >1. Ctrl + Alt + Esc to go into db >2. from db> type gdb >3. it displays: "The remote GDB backend could not be selected" > > > > On Mon, Oct 6, 2008 at 5:12 PM, alan yang <[EMAIL PROTECTED]> wrote: >> the problem is, when entering gdb from db as described in the following: >> -- >> Enter ing gdb from ddb >> In FreeBSD you can build a kernel with support for both ddb and gdb. >> You can then >> change backwards and forwards between them. For example, if you're in >> ddb, you can >> go to gdb like this: >> db> gdb >> Next trap will enter GDB remote protocol mode >> db> si step a single instruction to reenter ddb >> -- >> after typing gdb command, it says: "The remote GDB backend could not >> be selected" >> that i am not sure what this indicates; looking at subr_kdb.c, wonder >> maybe kdb_dbbe_set is not set? seems kdb_dbbe_set is not referenced >> anywhere, not sure how to get it right. >> >> thanks for shed some light ... >> >> On Mon, Oct 6, 2008 at 4:26 PM, Pietro Cerutti <[EMAIL PROTECTED]> wrote: >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA512 >>> >>> alan yang wrote: >>> | hi, there, >>> | >>> | wonder people can shed some lights on remote debugging. i have >>> | freebsd7 configured with option DDB / KDB / GDB but after entering the >>> | db on the target system the command gdb gives "the remote GDB backend >>> | could not be selected". >>> | >>> | i browsed through the mailing list, and do find 1 similar post but >>> | without answer. >>> | >>> | thanks in advance & apology if i overlooked things ... >>> >>> I suggest the following tutorial: >>> http://www.lemis.com/grog/Papers/Debug-tutorial/tutorial.pdf >>> >>> Have fun :) >>> >>> | >>> | cheers, >>> | alan >>> | ___ >>> | [EMAIL PROTECTED] mailing list >>> | http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >>> | To unsubscribe, send any mail to "[EMAIL PROTECTED]" >>> >>> >>> - -- >>> Pietro Cerutti >>> [EMAIL PROTECTED] >>> >>> PGP Public Key: >>> http://gahr.ch/pgp >>> >>> -BEGIN PGP SIGNATURE- >>> Version: GnuPG v2.0.9 (FreeBSD) >>> >>> iEYEAREKAAYFAkjqnpQACgkQwMJqmJVx945RSwCgoDb0JTr8LSFDB1vpAbGUjb76 >>> ZH0An19HpFVJJTUB5/XnyZc0pIDzgxc3 >>> =6Pdm >>> -END PGP SIGNATURE- >>> >> > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kgdb debugging
alan yang wrote: Could people shed some light how to get remote debugging going, must be something that i overlooked, really appreciate. Two FreeBSD7 systems, target and development, connected with null modem cable on each's COM1. step 1) - rebuild kernel with following options: options DDB options KDB options GDB makeoptions DEBUG=-g add hints.dev.uart.0.flags=0xc0 (or whatever it is) (see man uart or man sio) to /boot/device.hints step 2) - from development system cd to /usr/src/sys/i386/comiple/MYKERNEL kgdb -r /dev/cuad0 kernel.debug it displays the following: Switching to remote protocol Ignoring packet error, continuing . Couldn't establish connection to remote target Malformed response to offset query, timeout step 3) - from targetsystem: 1. Ctrl + Alt + Esc to go into db 2. from db> type gdb 3. it displays: "The remote GDB backend could not be selected" On Mon, Oct 6, 2008 at 5:12 PM, alan yang <[EMAIL PROTECTED]> wrote: the problem is, when entering gdb from db as described in the following: -- Enter ing gdb from ddb In FreeBSD you can build a kernel with support for both ddb and gdb. You can then change backwards and forwards between them. For example, if you're in ddb, you can go to gdb like this: db> gdb Next trap will enter GDB remote protocol mode db> si step a single instruction to reenter ddb -- after typing gdb command, it says: "The remote GDB backend could not be selected" that i am not sure what this indicates; looking at subr_kdb.c, wonder maybe kdb_dbbe_set is not set? seems kdb_dbbe_set is not referenced anywhere, not sure how to get it right. thanks for shed some light ... On Mon, Oct 6, 2008 at 4:26 PM, Pietro Cerutti <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 alan yang wrote: | hi, there, | | wonder people can shed some lights on remote debugging. i have | freebsd7 configured with option DDB / KDB / GDB but after entering the | db on the target system the command gdb gives "the remote GDB backend | could not be selected". | | i browsed through the mailing list, and do find 1 similar post but | without answer. | | thanks in advance & apology if i overlooked things ... I suggest the following tutorial: http://www.lemis.com/grog/Papers/Debug-tutorial/tutorial.pdf Have fun :) | | cheers, | alan | ___ | [EMAIL PROTECTED] mailing list | http://lists.freebsd.org/mailman/listinfo/freebsd-hackers | To unsubscribe, send any mail to "[EMAIL PROTECTED]" - -- Pietro Cerutti [EMAIL PROTECTED] PGP Public Key: http://gahr.ch/pgp -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAkjqnpQACgkQwMJqmJVx945RSwCgoDb0JTr8LSFDB1vpAbGUjb76 ZH0An19HpFVJJTUB5/XnyZc0pIDzgxc3 =6Pdm -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kgdb debugging
Could people shed some light how to get remote debugging going, must be something that i overlooked, really appreciate. Two FreeBSD7 systems, target and development, connected with null modem cable on each's COM1. step 1) - rebuild kernel with following options: options DDB options KDB options GDB makeoptions DEBUG=-g step 2) - from development system cd to /usr/src/sys/i386/comiple/MYKERNEL kgdb -r /dev/cuad0 kernel.debug it displays the following: Switching to remote protocol Ignoring packet error, continuing . Couldn't establish connection to remote target Malformed response to offset query, timeout step 3) - from targetsystem: 1. Ctrl + Alt + Esc to go into db 2. from db> type gdb 3. it displays: "The remote GDB backend could not be selected" On Mon, Oct 6, 2008 at 5:12 PM, alan yang <[EMAIL PROTECTED]> wrote: > the problem is, when entering gdb from db as described in the following: > -- > Enter ing gdb from ddb > In FreeBSD you can build a kernel with support for both ddb and gdb. > You can then > change backwards and forwards between them. For example, if you're in > ddb, you can > go to gdb like this: > db> gdb > Next trap will enter GDB remote protocol mode > db> si step a single instruction to reenter ddb > -- > after typing gdb command, it says: "The remote GDB backend could not > be selected" > that i am not sure what this indicates; looking at subr_kdb.c, wonder > maybe kdb_dbbe_set is not set? seems kdb_dbbe_set is not referenced > anywhere, not sure how to get it right. > > thanks for shed some light ... > > On Mon, Oct 6, 2008 at 4:26 PM, Pietro Cerutti <[EMAIL PROTECTED]> wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA512 >> >> alan yang wrote: >> | hi, there, >> | >> | wonder people can shed some lights on remote debugging. i have >> | freebsd7 configured with option DDB / KDB / GDB but after entering the >> | db on the target system the command gdb gives "the remote GDB backend >> | could not be selected". >> | >> | i browsed through the mailing list, and do find 1 similar post but >> | without answer. >> | >> | thanks in advance & apology if i overlooked things ... >> >> I suggest the following tutorial: >> http://www.lemis.com/grog/Papers/Debug-tutorial/tutorial.pdf >> >> Have fun :) >> >> | >> | cheers, >> | alan >> | ___ >> | [EMAIL PROTECTED] mailing list >> | http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> | To unsubscribe, send any mail to "[EMAIL PROTECTED]" >> >> >> - -- >> Pietro Cerutti >> [EMAIL PROTECTED] >> >> PGP Public Key: >> http://gahr.ch/pgp >> >> -BEGIN PGP SIGNATURE- >> Version: GnuPG v2.0.9 (FreeBSD) >> >> iEYEAREKAAYFAkjqnpQACgkQwMJqmJVx945RSwCgoDb0JTr8LSFDB1vpAbGUjb76 >> ZH0An19HpFVJJTUB5/XnyZc0pIDzgxc3 >> =6Pdm >> -END PGP SIGNATURE- >> > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Coretemp seems to be off quite a bit
On Tue, Oct 07, 2008 at 06:33:15PM +0100, Frank Shute wrote: > On Tue, Oct 07, 2008 at 06:28:32AM -0700, Jeremy Chadwick wrote: > > > > On Tue, Oct 07, 2008 at 02:25:17PM +0100, Frank Shute wrote: > > > On Mon, Oct 06, 2008 at 09:39:40AM -0500, Kirk Strauser wrote: > > > > > > > > I have a Gigabyte motherboard with an Intel ICH-9 chipset, and a > > > > 3.0GHz Core 2 Duo (E8400). The coretemp sysctls seem to always show > > > > 50C as the baseline temperature: > > > > > > > > $ sysctl dev.cpu | grep temp > > > > dev.cpu.0.temperature: 50 > > > > dev.cpu.1.temperature: 50 > > > > > > > > This is with a big PSU fan, a good CPU fan, a clean heatsink, and two > > > > case fans aimed the right direction (front fan pulling cool air in, > > > > rear fan pushing warm air out). If I reboot and go into the BIOS, I > > > > get numbers around 42-43C. I know it's kind of hard to compare > > > > directly, but the coretemp numbers are from a totally idle system with > > > > powerd scaling it back to 373MHz, so it should be as cool as when > > > > sitting idle in the BIOS screens. When I work the system hard, like > > > > running "make -j4 buildworld", I see temperatures up around 63-64C, > > > > and I'm almost positive that's not right. > > > > > > > > Any ideas why coretemp and the BIOS would show such different numbers? > > > > > > To add some numbers, I've got an E6550 on a Gigabyte GA-P35-DS3L > > > (ICH9) and I get: > > > > > > $ sysctl dev.cpu | grep temp > > > dev.cpu.0.temperature: 24 > > > dev.cpu.1.temperature: 28 > > > > > > Ambient room temp: 23°C > > > > > > That's running powerd and the machine idle, standard heatsink/fan > > > combo, 1x12cm case fan. > > > > > > Your's might run hotter (higher clock speed? Mine: 2.33GHz) but I > > > wouldn't expect it to run *so* much hotter. > > > > > > I'd expect your numbers to be right if all the ACPI stuff is working. > > > > Clarification here is needed: > > > > coretemp(4) has nothing to do with ACPI. It gets thermal statistics > > from the processor by talking *directly* to the processor with specific > > opcodes, the results returned in specific CPU registers. It does not > > rely on ACPI. > > Thanks for the clarification. > > What I meant was that the core temperatures are dependent on clock > speed which is dependent on powerd which is dependent on ACPI, if I'm > not mistaken. I believe powerd(8) is reliant upon cpufreq(4), which is reliant upon many different pieces (depending upon what you've enabled in your kernel and what you've configured in loader.conf). See the cpufreq(4) man page for details of all the drivers/methods supported -- and yep, ACPI-based throttling is indeed there. > i.e: If powerd isn't working properly due to ACPI bugs then you may > have your CPU running at full clock, hence high temps. No? Processors/hardware are not dependent upon operating systems "calming them down" or "telling them to idle". I forget if I mentioned use of HLT opcodes and what not on idling processors -- this is just an "added bonus", as HLT will often put the processor into a "deeper sleep" than it would if it was just sitting there doing nothing. That's why you might see some occasional Windows programs advertising "cool your CPU down by running this program!!!" Let's say his average idle temperature is 40C. If he does not use powerd(8), his processor temperature should probably be 40C, maybe up or down a degree. If he starts doing something CPU-intensive, that will obviously increase the temperature. But when the processor isn't doing anything, it shouldn't have a high temperature. Keep in mind that powerd(8) using frequency or clock throttling does not necessarily guarantee lower/colder temperatures. It all depends on what cpufreq(4) module is being relied upon, and what sorts of power saving states the CPU has in it. In the case of Core 2 Duos, there's 4 or 5 states (C1 through C5 I believe), and I've read that there's a couple different "severities" of some of those states. RMClock for Windows does an awful good job of showing you what all the states are, and you can enable/disable them (as power-down states available) simply by clicking check boxes. > So one possible scenario is that powerd isn't working, although Kirk > implies that it is. > > One piece of evidence that powerd is not working properly is that it > clocked the CPU back to 373MHz - which seems an odd-looking number to > me. It doesn't appear odd to me. It greatly depends on what processor model you have, what cpufreq(4) driver you're using, what CPU features you have turned on or off (BIOSes sometimes can set these for you), what your FreeBSD settings are (loader.conf specifically), and what motherboard you're using. Case in point: here's some from a PDSMi+ board, although I'm using debug.cpufreq.lowest="1191" in loader.conf (I don't care to have the system downclock beyond that): dev.cpu.0.freq: 1191 dev.cpu.0.freq_levels: 2382/-1 2084/-1
Re: Coretemp seems to be off quite a bit
On Oct 7, 2008, at 12:33 PM, Frank Shute wrote: $ sysctl dev.cpu | grep freq dev.cpu.0.freq: 250 dev.cpu.0.freq_levels: 2333/22464 2041/19656 2000/22464 1750/19656 1500/16848 1250/14040 1000/11232 750/8424 500/5616 250/2808 For some reason, versions of FreeBSD after 7.0-RELEASE think I have an odd-MHz CPU: $ sysctl dev.cpu.0.freq_levels dev.cpu.0.freq_levels: 2984/-1 2611/-1 2238/-1 1865/-1 1492/-1 1119/-1 746/-1 373/-1 I don't know if Kirk has fiddled with powerd. I just installed it & started it. That's all I did. I put 'powerd_enable="YES"' in /etc/rc.conf and started it. -- Kirk Strauser ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Coretemp seems to be off quite a bit
On Tue, Oct 07, 2008 at 06:28:32AM -0700, Jeremy Chadwick wrote: > > On Tue, Oct 07, 2008 at 02:25:17PM +0100, Frank Shute wrote: > > On Mon, Oct 06, 2008 at 09:39:40AM -0500, Kirk Strauser wrote: > > > > > > I have a Gigabyte motherboard with an Intel ICH-9 chipset, and a > > > 3.0GHz Core 2 Duo (E8400). The coretemp sysctls seem to always show > > > 50C as the baseline temperature: > > > > > > $ sysctl dev.cpu | grep temp > > > dev.cpu.0.temperature: 50 > > > dev.cpu.1.temperature: 50 > > > > > > This is with a big PSU fan, a good CPU fan, a clean heatsink, and two > > > case fans aimed the right direction (front fan pulling cool air in, > > > rear fan pushing warm air out). If I reboot and go into the BIOS, I > > > get numbers around 42-43C. I know it's kind of hard to compare > > > directly, but the coretemp numbers are from a totally idle system with > > > powerd scaling it back to 373MHz, so it should be as cool as when > > > sitting idle in the BIOS screens. When I work the system hard, like > > > running "make -j4 buildworld", I see temperatures up around 63-64C, > > > and I'm almost positive that's not right. > > > > > > Any ideas why coretemp and the BIOS would show such different numbers? > > > > To add some numbers, I've got an E6550 on a Gigabyte GA-P35-DS3L > > (ICH9) and I get: > > > > $ sysctl dev.cpu | grep temp > > dev.cpu.0.temperature: 24 > > dev.cpu.1.temperature: 28 > > > > Ambient room temp: 23°C > > > > That's running powerd and the machine idle, standard heatsink/fan > > combo, 1x12cm case fan. > > > > Your's might run hotter (higher clock speed? Mine: 2.33GHz) but I > > wouldn't expect it to run *so* much hotter. > > > > I'd expect your numbers to be right if all the ACPI stuff is working. > > Clarification here is needed: > > coretemp(4) has nothing to do with ACPI. It gets thermal statistics > from the processor by talking *directly* to the processor with specific > opcodes, the results returned in specific CPU registers. It does not > rely on ACPI. Thanks for the clarification. What I meant was that the core temperatures are dependent on clock speed which is dependent on powerd which is dependent on ACPI, if I'm not mistaken. i.e: If powerd isn't working properly due to ACPI bugs then you may have your CPU running at full clock, hence high temps. No? So one possible scenario is that powerd isn't working, although Kirk implies that it is. One piece of evidence that powerd is not working properly is that it clocked the CPU back to 373MHz - which seems an odd-looking number to me. On my machine: $ sysctl dev.cpu | grep freq dev.cpu.0.freq: 250 dev.cpu.0.freq_levels: 2333/22464 2041/19656 2000/22464 1750/19656 1500/16848 1250/14040 1000/11232 750/8424 500/5616 250/2808 i.e: I've got 2 odd steps high up but the rest are divisible by 50. I don't know if Kirk has fiddled with powerd. I just installed it & started it. Even if he used a percentage, it still seems a weird number - unless I missed something in powerd(4). Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: From konsole, konq:
On Tue, 7 Oct 2008 09:13:33 -0700 Gary Kline <[EMAIL PROTECTED]> wrote: > > Here's what I get con my knosole: > > > p8 1:20 [5112] konqueror > konqueror: WARNING: Can't > open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio > (KMimeType): WARNING: KServiceType::offers : servicetype not found > kio (KMimeType): WARNING: KServiceType::offers : servicetype not > found p8 9:00 [5113] konqueror Is ~/.kde from kde 3.x? If it is I'd try renaming it and starting over. When you use KDE 4 at the same time as KDE 3, it uses a separate .kde4 directory. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
From konsole, konq:
Here's what I get con my knosole: p8 1:20 [5112] konqueror konqueror: WARNING: Can't open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio (KMimeType): WARNING: KServiceType::offers : servicetype not found kio (KMimeType): WARNING: KServiceType::offers : servicetype not found p8 9:00 [5113] konqueror -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
any idea why kde4 konqueor fails?
Well, I've finally gotten Konq to exec, but something causes it to hang instantly whenever I click on an external link. The wristwatch icon shows up with the hang. Any idea what I'm missing? tia, gary -- Gary Kline [EMAIL PROTECTED] http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Consistency of MySQL dumps...
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Marc Coyles wrote: | Here's one that's puzzling me... | | If I use /usr/local/bin/mysqldump to make a backup of a database, the | file it produces fails to restore with "Check syntax near..." error. | | If I then head into cPanel, to their "Backup" menu, and take a backup of | the database from there, the file it produces also fails to restore | with "Check syntax near..." error, but at a COMPLETELY different point | thru the restore. cPanel probably runs mysqldump internally, but with slightly different options than you've been using on the command line. | If I head into cPanel, to phpmyadmin, and do an export from there... the | file restores PERFECTLY without errors. phpMyAdmin I happen to know generates the dump file by running its own dynamically generated SQL. If it works for you... | Sooo... how can I write a script that'll backup a MySQL database and | produce a useable file?? | | This problem is occurring on 2 of my 8 databases... it appears the | chosen software used to produce the dump of MySQL data is the culprit... | what is the best commandline (ie: cron-able) tool to use for the task? Without seeing the error message is (the interesting bit is usually slightly before the 'Check syntax near...' instruction) and what exactly the SQL code around that point is, I'm shooting in the dark somewhat. mysqldump(1) is the canonical tool for producing database dumps for backup. There's a classic problem to do with 'Max Packet Size' where mysqldump is allowed to produce much larger chunks of SQL than mysql client is allowed to swallow. This is easily cured by setting the max-packet-size variable during your data load session -- or set the variable from my.cnf so it's there all the time. Other possible problems: mysqldump usually works by locking each table in sequence while dumping it out. This means that things like Foreign Keys can get out of sync if you're dumping the database while it is particularly active. To cure that problem, either you need to tell mysqldump to acquire a DB-wide lock (which will block all other access) or you have to use InnoDB tables and enable transactions. You can in theory dump all of the databases in an instance of MySQL as a single transaction, although you may well run into the 4GB transaction size limit on 32bit machines if your databases are that large. (64bit machines have a max transaction size so large it's unfeasible to ever run into it). In summary: you should always be able to get a good backup out of mysqldump, but you'll have to play around with variables and command line options a bit to make it work smoothly in your specific circumstanes. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 ~ 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate ~ Kent, CT11 9PW, UK -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkjrecoACgkQ3jDkPpsZ+VZzwgCfaUFLS7L1uY93TazYk3wensoo 3HgAoMHeMGvgNGIJByB/WeESuBfp/gfj =2pXg -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: thorny (for me) permissions problem
Well, thanks to Valintin, I did figure out how to change the umask for pure-ftpd. So now uploaded files have the permissions I wanted, even if they are not needed. Be careful with what you've done. If you changed the umask on the ftpd as a whole, then suddenly unrelated users are going to find their files writeable by whatever group/GID they default to. A good point. The default group for my users is their own group... i.e., user_a's default group is user_a, so that should not be a problem, but why give away more rights than necessary? So, I've put the pure-ftpd umask back to 137:077 (this inverted octal was a brain twister until I had my second cup of coffee :-), retested, and it all works the way I wanted it to. Three hours gone, but I guess I learned a few things, which I have documented in my Solutions Log. By the way, for any Mac users on the list, I highly recommend Yojimbo as a Solutions Log. Yojimbo is a program that's hard to explain, but incredibly useful. It is basically a place that you can throw all sorts of useful information, such as notes on how to solve things you've already figured out (I hate having to figure things out twice), PDFs, book marks, whole web pages (archived), emails (archived), passwords (encrypted)... any information that you want to be able to find easily in the future. You can 'tag' each bit of information with as many keywords as you want. Then, when you need to retrieve some vital bit of information, it has a search engine that lets you find it quickly. It sounds trivial, when you read it, but I don't know any other tool that lets you store so many types of documents in the same place, with such easy retrieval. Anyway, that's my tip of the day. Thanks to everyone for the help. Now I just need to catch up on the rest of the day's work! -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: update.FreeBSD.org / No mirrors remaining, giving up
On Mon 2008-10-06 10:39:42 UTC+0200, Zbigniew Szalbot ([EMAIL PROTECTED]) wrote: > I am not sure why but whenever I do: > > $ freebsd-update fetch > Fetching metadata signature for 7.0-RELEASE from update.FreeBSD.org... failed. > No mirrors remaining, giving up. > > but if type: > $ portsnap fetch > Fetching snapshot tag from portsnap.FreeBSD.org... done. > > Many thanks for any hint as to what may be wrong with > update.FreeBSD.org on this machine! A similar problem to this: http://lists.freebsd.org/pipermail/freebsd-questions/2008-April/173725.html It may be your ISP's nameservers do not support SRV record lookups. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: update.FreeBSD.org / No mirrors remaining, giving up
On Tue, 7 Oct 2008 18:55:24 +1100 Edwin Groothuis <[EMAIL PROTECTED]> wrote: > > $ freebsd-update fetch > > Fetching metadata signature for 7.0-RELEASE from > > update.FreeBSD.org... failed. No mirrors remaining, giving up. > > I've heard this before and it is caused by resolvers (most likely > your router?) which don't understand requests for SRV records. freebsd-update and portsnap should fall back to the configured server if they can't get SRV records, they should be able to work through an http-proxy without any DNS access at all on the local machine. It sounds like a bug if SRV records are needed. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Consistency of MySQL dumps...
Here's one that's puzzling me... If I use /usr/local/bin/mysqldump to make a backup of a database, the file it produces fails to restore with "Check syntax near..." error. If I then head into cPanel, to their "Backup" menu, and take a backup of the database from there, the file it produces also fails to restore with "Check syntax near..." error, but at a COMPLETELY different point thru the restore. If I head into cPanel, to phpmyadmin, and do an export from there... the file restores PERFECTLY without errors. Sooo... how can I write a script that'll backup a MySQL database and produce a useable file?? This problem is occurring on 2 of my 8 databases... it appears the chosen software used to produce the dump of MySQL data is the culprit... what is the best commandline (ie: cron-able) tool to use for the task? Marc A Coyles - Horbury School ICT Support Team Mbl: 07850 518106 Land: 01924 282740 ext 730 Helpdesk: 01924 282740 ext 2000 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: thorny (for me) permissions problem
On Tue, Oct 07, 2008 at 10:23:53AM -0400, John Almberg wrote: > > On Oct 7, 2008, at 9:34 AM, Jeremy Hooks wrote: > 4. however, after upload, the file has the ownership A:B (i.e, owned by >> A, group B) with permissions -rw-r--r--. So B does not have permission >> to >> delete the file. >>-rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv >> >> Hi John. >> >> Correct me if I am wrong but permission to delete a file depends on >> the >> users permissions for the containing directory. If B has write >> permission >> on the directory then B can delete the file. However you will likely >> need >> to use 'rm -f'. > > Argh > > As a newbie admin, I really have a tough time with permissions. I swear I > got a permissions error when I tried to delete this dang file, but I just > logged in as B and was able to delete it just fine. Of course this is > because B owns the directory. > > I guess I must have done something boneheaded an hour or two ago... > gosh, I hate wasting time. Mine, and the lists, of course. > > Well, thanks to Valintin, I did figure out how to change the umask for > pure-ftpd. So now uploaded files have the permissions I wanted, even if > they are not needed. Be careful with what you've done. If you changed the umask on the ftpd as a whole, then suddenly unrelated users are going to find their files writeable by whatever group/GID they default to. For example, on my systems, everyone's default group is "users", and I definitely would not want group-write set to files people upload on their accounts! The idea of a user being able to edit or zero out other users' data is not good. But that's also what the underlying directory permissions are for... As you've learned/remembered today. :-) > And thanks to the rest, I figured out it was working all along... And > now I can't even duplicate the error I saw before... > > Does this ever get any easier??? How can any one person remember > all this stuff??? It gets easier with time; don't rush yourself. :-) Even those of us who have been using UNIX for almost 20 years forget the simplest of things on a regular basis. Be sure to let us know when you make the infamous "rm -fr" typo that nukes either / or ~. :-) -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: thorny (for me) permissions problem
On Oct 7, 2008, at 9:34 AM, Jeremy Hooks wrote: 4. however, after upload, the file has the ownership A:B (i.e, owned by A, group B) with permissions -rw-r--r--. So B does not have permission to delete the file. -rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv Hi John. Correct me if I am wrong but permission to delete a file depends on the users permissions for the containing directory. If B has write permission on the directory then B can delete the file. However you will likely need to use 'rm -f'. Argh As a newbie admin, I really have a tough time with permissions. I swear I got a permissions error when I tried to delete this dang file, but I just logged in as B and was able to delete it just fine. Of course this is because B owns the directory. I guess I must have done something boneheaded an hour or two ago... gosh, I hate wasting time. Mine, and the lists, of course. Well, thanks to Valintin, I did figure out how to change the umask for pure-ftpd. So now uploaded files have the permissions I wanted, even if they are not needed. And thanks to the rest, I figured out it was working all along... And now I can't even duplicate the error I saw before... Does this ever get any easier??? How can any one person remember all this stuff??? -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
dd piperd
Sziasztok, Ilyet látok top-ban: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 11475 gandalf 1 -8 0 4600K 864K piperd 5 21:41 8.06% cat 11472 gandalf 1 -8 0 4604K 876K piperd 3 21:30 8.06% dd Tehát összesen 16% procit zabál valami, amiről nem tudom hogy mi! ps ezt mondja: 1001 11472 11471 0 -8 0 4604 876 piperd S ?? 21:24.52 dd bs=1 count=1926717440 ilyet én biztosan nem futtatok magamtól. De akkor ki? Van ötletetek arra hogy a cat + dd párost melyik program futtathatja ilyen hülye módon? Valami maintenance cron job esetleg? Parázok hogy valaki betört. Köszi, Laci ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: thorny (for me) permissions problem
>> 4. however, after upload, the file has the ownership A:B (i.e, owned by A, group B) with permissions -rw-r--r--. So B does not have permission to delete the file. -rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv Hi John. Correct me if I am wrong but permission to delete a file depends on the users permissions for the containing directory. If B has write permission on the directory then B can delete the file. However you will likely need to use 'rm -f'. Regards. Jeremy. On Tue, Oct 7, 2008 at 1:54 PM, John Almberg <[EMAIL PROTECTED]> wrote: > The following permissions problem has me stumped: > > 1. User A uploads a file (using ftp) to the server, into a directory called > 'data' owned by user B. Permissions on directory set to allow this, like > this: >drwxrwxr-x 2 user_b user_b 512 Oct 7 08:40 data > > 2. A cron job, run by user B, then processes the file > > 3. When the processing is complete, the cron job needs to delete the file > from the server > > 4. however, after upload, the file has the ownership A:B (i.e, owned by A, > group B) with permissions -rw-r--r--. So B does not have permission to > delete the file. >-rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv > > The ftp user can manually change the permissions on the file to -rw-rw-r--, > but I do not want to depend on the user remembering to change permissions. > If he forgets, the cronjob will process the file over and over again. I need > the server to handle this, so it gets done correctly 100% of the time. > > B does not have sufficient permissions to delete the file or change it's > permissions. The only thing I can think of is to have ANOTHER cron job, run > by A, run every few minutes to check for the existence of a file, and change > the permissions so B can delete it. But this smells like a kludge to me. > > Is there a correct way to handle this? For instance, is there something I > can set in A's profile, so when he uploads a file, the group permission is > set to rw? That would be a nice clean way to do it, but I can't find > anything like that. > > Any help, much appreciated. > > -- John > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > [EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernel profiling: spinlock_exit consumes 36% CPU time.
On Tuesday 07 October 2008 07:44:00 am 邱剑 wrote: > Hi, folks, > > I did kernel profiling when a single thread client sends UDP packets to a > single thread server on the same machine. > > In the output kernel profile, the first few kernel functions that consumes > the most CPU time are listed below: > > granularity: each sample hit covers 16 byte(s) for 0.01% of 25.68 seconds > > % cumulative self self total > time seconds secondscalls ms/call ms/call name > 42.4 10.8810.880 100.00% __mcount [1] > 36.1 20.14 9.26 17937541 0.00 0.00 spinlock_exit [4] > 4.2 21.22 1.08 3145728 0.00 0.00 in_cksum_skip [40] > 1.8 21.68 0.45 7351987 0.00 0.00 generic_copyin [43] > 1.1 21.96 0.29 3146028 0.00 0.00 generic_copyout [48] > 1.0 22.21 0.24 2108904 0.00 0.00 Xint0x80_syscall [3] > 0.8 22.42 0.21 6292131 0.00 0.00 uma_zalloc_arg [46] > 0.8 22.62 0.20 1048576 0.00 0.00 soreceive_generic [9] > > It is very strange that spinlock_exit consumes over 36% CPU time while it > seems a very simple function. It's because the intr_restore() re-enables interrupts and the resulting time spent executing the handlers for any pending interrupts are attributed to spinlock_exit(). -- John Baldwin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Touch screen ET&T on Clevo tn120r
Thanks, here is the usb data: usbdevs -dv Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x), rev 1.00 uhub0 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x), rev 1.00 uhub1 port 1 powered port 2 addr 2: full speed, power 100 mA, config 1, Fingerprint Sensor(0x2016), TouchStrip(0x147e), rev 0.01 ugen0 Controller /dev/usb2: addr 1: high speed, self powered, config 1, EHCI root hub(0x), Intel(0x), rev 1.00 uhub2 port 1 powered port 2 powered port 3 powered port 4 powered Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x), rev 1.00 uhub3 port 1 powered port 2 powered Controller /dev/usb4: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x), rev 1.00 uhub4 port 1 powered port 2 powered Controller /dev/usb5: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x), rev 1.00 uhub5 port 1 addr 2: full speed, power 100 mA, config 1, TC4UM(0x0306), ET&T Technology(0x0664), rev 1.00 uhid0 port 2 powered Controller /dev/usb6: addr 1: high speed, self powered, config 1, EHCI root hub(0x), Intel(0x), rev 1.00 uhub6 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: has anyone actually received a bsdmag ?
On Tue, Oct 7, 2008 at 8:14 AM, kenneth hatteland < [EMAIL PROTECTED]> wrote: > The first 2 issues have covered topics from FreeBSD, NetBSD, OpenBSD and > actually a short one on MAC. In addition PCBSD is quite heavily featured. > > As far as I know this leaves only Dragonfly and DesktopBSD out for now in > addition to Monowall, FreeNAS and FreeSBIE and others I do not know. Maybe > these will be featured in later issues ? :) > > Kenneth > > Actually, I think there have been articles introducing PC-BSD and DesktopBSD. I haven't seen articles regarding Dragonfly; but version 1.12.2 is on the DVD. (FYI - DragonFly BSD version 2.0.1 was released on September 27.) The BSDMag website mentioned that it would be available at Barnes & Noble. I couldn't find it there; but I found it at Borders bookstores. Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernel profiling: spinlock_exit consumes 36% CPU time.
邱剑 wrote: > Hi, folks, [...] spinlocks disable interrupts so the profiling interrupt is held off from the moment that the spinlock is entered to the moment it is exited, and all of that time is attributed to spinlock_exit(). so that this tells you that 3% of your time is spent under spinlocks which is a lot. as others have asked, "what version"? you should look up lock profiling to see WHICH lock is teh ine in question. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Coretemp seems to be off quite a bit
On Tue, Oct 07, 2008 at 02:25:17PM +0100, Frank Shute wrote: > On Mon, Oct 06, 2008 at 09:39:40AM -0500, Kirk Strauser wrote: > > > > I have a Gigabyte motherboard with an Intel ICH-9 chipset, and a > > 3.0GHz Core 2 Duo (E8400). The coretemp sysctls seem to always show > > 50C as the baseline temperature: > > > > $ sysctl dev.cpu | grep temp > > dev.cpu.0.temperature: 50 > > dev.cpu.1.temperature: 50 > > > > This is with a big PSU fan, a good CPU fan, a clean heatsink, and two > > case fans aimed the right direction (front fan pulling cool air in, > > rear fan pushing warm air out). If I reboot and go into the BIOS, I > > get numbers around 42-43C. I know it's kind of hard to compare > > directly, but the coretemp numbers are from a totally idle system with > > powerd scaling it back to 373MHz, so it should be as cool as when > > sitting idle in the BIOS screens. When I work the system hard, like > > running "make -j4 buildworld", I see temperatures up around 63-64C, > > and I'm almost positive that's not right. > > > > Any ideas why coretemp and the BIOS would show such different numbers? > > To add some numbers, I've got an E6550 on a Gigabyte GA-P35-DS3L > (ICH9) and I get: > > $ sysctl dev.cpu | grep temp > dev.cpu.0.temperature: 24 > dev.cpu.1.temperature: 28 > > Ambient room temp: 23°C > > That's running powerd and the machine idle, standard heatsink/fan > combo, 1x12cm case fan. > > Your's might run hotter (higher clock speed? Mine: 2.33GHz) but I > wouldn't expect it to run *so* much hotter. > > I'd expect your numbers to be right if all the ACPI stuff is working. Clarification here is needed: coretemp(4) has nothing to do with ACPI. It gets thermal statistics from the processor by talking *directly* to the processor with specific opcodes, the results returned in specific CPU registers. It does not rely on ACPI. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Coretemp seems to be off quite a bit
On Mon, Oct 06, 2008 at 09:39:40AM -0500, Kirk Strauser wrote: > > I have a Gigabyte motherboard with an Intel ICH-9 chipset, and a > 3.0GHz Core 2 Duo (E8400). The coretemp sysctls seem to always show > 50C as the baseline temperature: > > $ sysctl dev.cpu | grep temp > dev.cpu.0.temperature: 50 > dev.cpu.1.temperature: 50 > > This is with a big PSU fan, a good CPU fan, a clean heatsink, and two > case fans aimed the right direction (front fan pulling cool air in, > rear fan pushing warm air out). If I reboot and go into the BIOS, I > get numbers around 42-43C. I know it's kind of hard to compare > directly, but the coretemp numbers are from a totally idle system with > powerd scaling it back to 373MHz, so it should be as cool as when > sitting idle in the BIOS screens. When I work the system hard, like > running "make -j4 buildworld", I see temperatures up around 63-64C, > and I'm almost positive that's not right. > > Any ideas why coretemp and the BIOS would show such different numbers? To add some numbers, I've got an E6550 on a Gigabyte GA-P35-DS3L (ICH9) and I get: $ sysctl dev.cpu | grep temp dev.cpu.0.temperature: 24 dev.cpu.1.temperature: 28 Ambient room temp: 23°C That's running powerd and the machine idle, standard heatsink/fan combo, 1x12cm case fan. Your's might run hotter (higher clock speed? Mine: 2.33GHz) but I wouldn't expect it to run *so* much hotter. I'd expect your numbers to be right if all the ACPI stuff is working. To confirm this, check in Windows, if you can: http://www.techpowerup.com/realtemp/ Tom's hardware has some stuff about Intel temps: http://www.tomshardware.co.uk/forum/221745-11-core-quad-temperature-guide If that is high too and is outside the proper temperature envelope for your CPU, that leaves a possibility that your heatsink/fan might not be seated properly. What we could do with is some numbers from somebody running a similar CPU. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: thorny (for me) permissions problem
On Tue, Oct 07, 2008 at 08:54:36AM -0400, John Almberg wrote: > The following permissions problem has me stumped: > > 1. User A uploads a file (using ftp) to the server, into a directory > called 'data' owned by user B. Permissions on directory set to allow > this, like this: > drwxrwxr-x 2 user_b user_b 512 Oct 7 08:40 data This aimplies that User A's account is in group "user_b". > 2. A cron job, run by user B, then processes the file > > 3. When the processing is complete, the cron job needs to delete the > file from the server > > 4. however, after upload, the file has the ownership A:B (i.e, owned by > A, group B) with permissions -rw-r--r--. So B does not have permission to > delete the file. This doesn't make sense. Any user in "group B" (the group that's assigned to the "data" directory) should be able to remove files in that directory. That means: 1) Any user in the group called "user_b", 2) The user "user_b" himself. See below. > The ftp user can manually change the permissions on the file to -rw- > rw-r--, but I do not want to depend on the user remembering to change > permissions. If he forgets, the cronjob will process the file over and > over again. I need the server to handle this, so it gets done correctly > 100% of the time. > > B does not have sufficient permissions to delete the file or change it's > permissions. The only thing I can think of is to have ANOTHER cron job, > run by A, run every few minutes to check for the existence of a file, and > change the permissions so B can delete it. But this smells like a kludge > to me. > > Is there a correct way to handle this? For instance, is there something I > can set in A's profile, so when he uploads a file, the group permission > is set to rw? That would be a nice clean way to do it, but I can't find > anything like that. What you're describing is understandable, but something is wrong with the setup or description of the problem. Here's proof of what I'm talking about: # egrep 'somegroup' /etc/group somegroup:*::bob,jim # id bob uid=2000(bob) gid=1000(users) groups=1000(users),(somegroup) # id jim uid=2001(jim) gid=1000(users) groups=1000(users),(somegroup) Both of these users are in group "somegroup". So let's make some directories and files: drwxrwxr-x 2 jim somegroup 2 Oct 7 06:22 data/ -rw-r- 1 bob somegroup 0 Oct 7 06:22 data/somefile In this scenario, user "jim" will be able to remove "somefile", as can be seen here: # su jim % id -a uid=2001(jim) gid=1000(users) groups=1000(users),(somegroup) % ls -l total 1 -rw-r- 1 bob somegroup 0 Oct 7 06:22 somefile % rm somefile override rw-r- bob/somegroup for somefile? y % ls -l total 0 So, possibly the FTP server you're using does not inherit users groups, only GIDs? -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: has anyone actually received a bsdmag ?
The first 2 issues have covered topics from FreeBSD, NetBSD, OpenBSD and actually a short one on MAC. In addition PCBSD is quite heavily featured. As far as I know this leaves only Dragonfly and DesktopBSD out for now in addition to Monowall, FreeNAS and FreeSBIE and others I do not know. Maybe these will be featured in later issues ? :) Kenneth ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Re[2]: Unable install FreeBSD7 on IBM BladeCenter HS21
2008/10/7 Vitaliy Vladimirovich <[EMAIL PROTECTED]> > > > --- Original Message --- > From: Volodymyr Kostyrko <[EMAIL PROTECTED]> > To: freebsd-questions@freebsd.org > Date: 7 october, 15:47:48 > Subject: Re: Unable install FreeBSD7 on IBM BladeCenter HS21 > > Vitaliy Vladimirovich wrote: > > Hello! > > I have problem in installation FreeBSD on the blade. After the beginning > of copying of files there is an error: > > > > /: write failed, filesystem is full > > > > Disk > > In what problem? > > df -h > > Perhaps your / is too small. Try repartitioning or strip something out > of kernel. > > No,no. > This is problem in acpi. Then disable ACPI from BIOS and give it a go. After finish re-enable ACPI. all the best, v > > > https://www.bsdwiki.de/FreeBSD_on_IBM_Blade > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > [EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: thorny (for me) permissions problem
Hello mr. John, On Tue, Oct 7, 2008 at 2:54 PM, John Almberg <[EMAIL PROTECTED]> wrote: > The following permissions problem has me stumped: > > 1. User A uploads a file (using ftp) to the server, into a directory called > 'data' owned by user B. Permissions on directory set to allow this, like > this: >drwxrwxr-x 2 user_b user_b 512 Oct 7 08:40 data > > 2. A cron job, run by user B, then processes the file > > 3. When the processing is complete, the cron job needs to delete the file > from the server > > 4. however, after upload, the file has the ownership A:B (i.e, owned by A, > group B) with permissions -rw-r--r--. So B does not have permission to > delete the file. >-rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv > > The ftp user can manually change the permissions on the file to -rw-rw-r--, > but I do not want to depend on the user remembering to change permissions. > If he forgets, the cronjob will process the file over and over again. I need > the server to handle this, so it gets done correctly 100% of the time. > > B does not have sufficient permissions to delete the file or change it's > permissions. The only thing I can think of is to have ANOTHER cron job, run > by A, run every few minutes to check for the existence of a file, and change > the permissions so B can delete it. But this smells like a kludge to me. > > Is there a correct way to handle this? For instance, is there something I > can set in A's profile, so when he uploads a file, the group permission is > set to rw? That would be a nice clean way to do it, but I can't find > anything like that. > > Any help, much appreciated. > > -- John Depends on what ftp daemon you use. All the ftp server programs have a way to enforce the umask. See http://en.wikipedia.org/wiki/Umask for a better understanding to what umask is. all the best, v > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > [EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re[2]: Unable install FreeBSD7 on IBM BladeCenter HS21
--- Original Message --- From: Volodymyr Kostyrko <[EMAIL PROTECTED]> To: freebsd-questions@freebsd.org Date: 7 october, 15:47:48 Subject: Re: Unable install FreeBSD7 on IBM BladeCenter HS21 Vitaliy Vladimirovich wrote: > Hello! > I have problem in installation FreeBSD on the blade. After the beginning of > copying of files there is an error: > > /: write failed, filesystem is full > > Disk > In what problem? df -h Perhaps your / is too small. Try repartitioning or strip something out of kernel. No,no. This is problem in acpi. https://www.bsdwiki.de/FreeBSD_on_IBM_Blade ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
thorny (for me) permissions problem
The following permissions problem has me stumped: 1. User A uploads a file (using ftp) to the server, into a directory called 'data' owned by user B. Permissions on directory set to allow this, like this: drwxrwxr-x 2 user_b user_b 512 Oct 7 08:40 data 2. A cron job, run by user B, then processes the file 3. When the processing is complete, the cron job needs to delete the file from the server 4. however, after upload, the file has the ownership A:B (i.e, owned by A, group B) with permissions -rw-r--r--. So B does not have permission to delete the file. -rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv The ftp user can manually change the permissions on the file to -rw- rw-r--, but I do not want to depend on the user remembering to change permissions. If he forgets, the cronjob will process the file over and over again. I need the server to handle this, so it gets done correctly 100% of the time. B does not have sufficient permissions to delete the file or change it's permissions. The only thing I can think of is to have ANOTHER cron job, run by A, run every few minutes to check for the existence of a file, and change the permissions so B can delete it. But this smells like a kludge to me. Is there a correct way to handle this? For instance, is there something I can set in A's profile, so when he uploads a file, the group permission is set to rw? That would be a nice clean way to do it, but I can't find anything like that. Any help, much appreciated. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Unable install FreeBSD7 on IBM BladeCenter HS21
Vitaliy Vladimirovich wrote: Hello! I have problem in installation FreeBSD on the blade. After the beginning of copying of files there is an error: /: write failed, filesystem is full Disk In what problem? df -h Perhaps your / is too small. Try repartitioning or strip something out of kernel. -- Sphinx of black quartz judge my vow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Running cron jobs as nobody
Mel wrote: On Thursday 02 October 2008 17:11:52 DAve wrote: Good morning all, We have a cronjob we need to run as nobody from /etc/crontab and it seems to be not working. The job runs, but not as user nobody. I noticed two things, 1) the job to update the locate DB runs as nobody, because the script uses su to become nobody. echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody || rc=3 ^^^ -fm: Bypass .cshrc and only change user, use root env. Is setting the user to nobody in /etc/crontab not possible? pw showuser operator pw showuser nobody Spot the difference (hint: /nonexistent) That was my first thought as well. After reading some of the responses I still thought it odd that cron would not run the script as "nobody". So I setup two scripts to dump the env vars into a file, one script runs from /etc/crontab and one from nobody's crontab. Both are functioning perfectly. I have told the developer to re investigate his script and his directory perms. I looks like a case of PEBKAC to me. Thanks for the responses. DAve -- Don't tell me I'm driving the cart! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernel profiling: spinlock_exit consumes 36% CPU time.
On Tue, Oct 07, 2008 at 07:44:00PM +0800, wrote: > Hi, folks, > > I did kernel profiling when a single thread client sends UDP packets to a > single thread server on the same machine. > > In the output kernel profile, the first few kernel functions that consumes > the most CPU time are listed below: > > granularity: each sample hit covers 16 byte(s) for 0.01% of 25.68 seconds > > % cumulative self self total > time seconds secondscalls ms/call ms/call name > 42.4 10.8810.880 100.00% __mcount [1] > 36.1 20.14 9.26 17937541 0.00 0.00 spinlock_exit [4] > 4.2 21.22 1.08 3145728 0.00 0.00 in_cksum_skip [40] > 1.8 21.68 0.45 7351987 0.00 0.00 generic_copyin [43] > 1.1 21.96 0.29 3146028 0.00 0.00 generic_copyout [48] > 1.0 22.21 0.24 2108904 0.00 0.00 Xint0x80_syscall [3] > 0.8 22.42 0.21 6292131 0.00 0.00 uma_zalloc_arg [46] > 0.8 22.62 0.20 1048576 0.00 0.00 soreceive_generic [9] > 0.7 22.80 0.19 3145852 0.00 0.00 free [47] > 0.6 22.96 0.15 6292172 0.00 0.00 uma_zfree_arg [52] > 0.6 23.10 0.14 5243413 0.00 0.00 generic_bzero [53] > 0.5 23.23 0.14 1048581 0.00 0.00 ip_output [23] > 0.5 23.36 0.13 4221855 0.00 0.00 generic_bcopy [57] > 0.4 23.47 0.11 36865859 0.00 0.00 critical_enter [61] > 0.4 23.57 0.10 36865859 0.00 0.00 critical_exit [62] > 0.4 23.67 0.09 17937541 0.00 0.00 spinlock_enter [63] > 0.4 23.76 0.09 1048582 0.00 0.00 udp_input [21] > 0.3 23.85 0.09 2108904 0.00 0.00 syscall [5] > 0.3 23.93 0.08 1048587 0.00 0.00 ip_input [20] > 0.3 24.00 0.07 2097156 0.00 0.00 getsock [65] > 0.3 24.07 0.07 1048576 0.00 0.00 udp_send [22] > > It is very strange that spinlock_exit consumes over 36% CPU time while it > seems a very simple function. > > For clarity, I paste the code of spinlock_exit here: > > void > spinlock_exit(void) > { > struct thread *td; > > td = curthread; > critical_exit(); > td->td_md.md_spinlock_count--; > if (td->td_md.md_spinlock_count == 0) > intr_restore(td->td_md.md_saved_flags); > } > > Since critical_exit consumes only 0.4% CPU time, does this mean the rest of > spinlock_exit consume ~36% CPU time? > > Am I missing something? Could anybody help me understand this? Many thanks. > > BTW, the kernel is compiled with SMP and PREEMPTION disabled. The scheduler > is ULE. What FreeBSD version, and what build date of the kernel? -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
detecting monitor's sync and refresh rate?
I've a monitor (Mobi M15MPC) with no docs. I've searched the net but cannot find any info on sync and refresh rate for it. I've done Xorg -configure, but testing with X -config xorg.conf.new shows screen shifted to the side and very nasty blinking, from which I deduced that perhaps I need to specify correct sync, refresh and mode. Are there any commands to get sync and refresh from the monitor? many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
kernel profiling: spinlock_exit consumes 36% CPU time.
Hi, folks, I did kernel profiling when a single thread client sends UDP packets to a single thread server on the same machine. In the output kernel profile, the first few kernel functions that consumes the most CPU time are listed below: granularity: each sample hit covers 16 byte(s) for 0.01% of 25.68 seconds % cumulative self self total time seconds secondscalls ms/call ms/call name 42.4 10.8810.880 100.00% __mcount [1] 36.1 20.14 9.26 17937541 0.00 0.00 spinlock_exit [4] 4.2 21.22 1.08 3145728 0.00 0.00 in_cksum_skip [40] 1.8 21.68 0.45 7351987 0.00 0.00 generic_copyin [43] 1.1 21.96 0.29 3146028 0.00 0.00 generic_copyout [48] 1.0 22.21 0.24 2108904 0.00 0.00 Xint0x80_syscall [3] 0.8 22.42 0.21 6292131 0.00 0.00 uma_zalloc_arg [46] 0.8 22.62 0.20 1048576 0.00 0.00 soreceive_generic [9] 0.7 22.80 0.19 3145852 0.00 0.00 free [47] 0.6 22.96 0.15 6292172 0.00 0.00 uma_zfree_arg [52] 0.6 23.10 0.14 5243413 0.00 0.00 generic_bzero [53] 0.5 23.23 0.14 1048581 0.00 0.00 ip_output [23] 0.5 23.36 0.13 4221855 0.00 0.00 generic_bcopy [57] 0.4 23.47 0.11 36865859 0.00 0.00 critical_enter [61] 0.4 23.57 0.10 36865859 0.00 0.00 critical_exit [62] 0.4 23.67 0.09 17937541 0.00 0.00 spinlock_enter [63] 0.4 23.76 0.09 1048582 0.00 0.00 udp_input [21] 0.3 23.85 0.09 2108904 0.00 0.00 syscall [5] 0.3 23.93 0.08 1048587 0.00 0.00 ip_input [20] 0.3 24.00 0.07 2097156 0.00 0.00 getsock [65] 0.3 24.07 0.07 1048576 0.00 0.00 udp_send [22] It is very strange that spinlock_exit consumes over 36% CPU time while it seems a very simple function. For clarity, I paste the code of spinlock_exit here: void spinlock_exit(void) { struct thread *td; td = curthread; critical_exit(); td->td_md.md_spinlock_count--; if (td->td_md.md_spinlock_count == 0) intr_restore(td->td_md.md_saved_flags); } Since critical_exit consumes only 0.4% CPU time, does this mean the rest of spinlock_exit consume ~36% CPU time? Am I missing something? Could anybody help me understand this? Many thanks. BTW, the kernel is compiled with SMP and PREEMPTION disabled. The scheduler is ULE. Best regards, Qiu Jian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: The disc in your drive looks more like an Audio CD than a FreeBSDrelease
Yea I would say your burn of the .iso file to your cd did not work. Mount the cd and see if it contains a directory tree of Freebsd install files or mp3 files. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Monday, October 06, 2008 7:07 PM To: freebsd-questions@freebsd.org Subject: The disc in your drive looks more like an Audio CD than a FreeBSDrelease Hi there. I tried to install 7.1-BETA from the CD I burned from 7.1-BETA-i386-disc1.iso, but after I created all the partitions etc and then selected to install, I get the following error message: "The disc in your drive looks more like an Audio CD than a FreeBSD release" Any idea what's wrong? -- Kiffin Gish <[EMAIL PROTECTED]> Gouda, The Netherlands ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: sleep is not working to avoid starvation among threads of same priority
On Tue, Oct 07, 2008 at 03:34:41PM +0530, Rajeshwar Patil wrote: > I have two threads of same priority lets say thread A and thread B, > thread A is starving since thread B has got a for loop of size 100k. > So, to avoid starvation I am processing 1000 iterations of for > loop(that of thread B) in one batch and giving sleep of 1ms, but still > thread A is starving. If I increase the batch size used in for loop > from 1k to 10k then starvation of thread A is little less whereas it > should be more as Im increasing processing time of thread B. I tried > various combinations of sleeps and batches, but I couldnt solve the > starvation of thread A. > > Is the sleep right solution? > > I will be grateful if someone could answer on this. This might be a question for freebsd-hackers, which is more developer-oriented than -questions. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
sleep is not working to avoid starvation among threads of same priority
Hi, I have two threads of same priority lets say thread A and thread B, thread A is starving since thread B has got a for loop of size 100k. So, to avoid starvation I am processing 1000 iterations of for loop(that of thread B) in one batch and giving sleep of 1ms, but still thread A is starving. If I increase the batch size used in for loop from 1k to 10k then starvation of thread A is little less whereas it should be more as Im increasing processing time of thread B. I tried various combinations of sleeps and batches, but I couldnt solve the starvation of thread A. Is the sleep right solution? I will be grateful if someone could answer on this. Thanks Rajeshwar "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
sleep is not working to avoid starvation among threads of same priority
Hi, I have two threads of same priority lets say thread A and thread B, thread A is starving since thread B has got a for loop of size 100k. So, to avoid starvation I am processing 1000 iterations of for loop(that of thread B) in one batch and giving sleep of 1ms, but still thread A is starving. If I increase the batch size used in for loop from 1k to 10k then starvation of thread A is little less whereas it should be more as Im increasing processing time of thread B. I tried various combinations of sleeps and batches, but I couldnt solve the starvation of thread A. Is the sleep right solution? I will be grateful if someone could answer on this. Thanks Rajeshwar "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: TRUE realtime priority
quantum to 2 from 10 and for now - no voice chopping under high load. but i will test it more. What version of FreeBSD are you using for this? Yes, it matters. 7.0 please give me few days to make more precise reports from my users and me being on place today (not just testing this through echo). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Unable install FreeBSD7 on IBM BladeCenter HS21
Hello! I have problem in installation FreeBSD on the blade. After the beginning of copying of files there is an error: /: write failed, filesystem is full Disk In what problem? TIA. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Script works fine from CLI, but not when Cron'd
On Tue, Oct 07, 2008 at 10:20:32AM +0100, Marc Coyles wrote: > I've got a script to backup my MySQL databases, which works absolutely > fine from the command line, but when I add it in to root's cronjobs it > always fails with "mysqldump: not found" - what am I doing wrong? mysqldump is in /usr/local/bin, which $PATH does not contain when running from a cronjob. (PATH inside of cron has a very limited scope, I believe it's /bin:/usr/bin). Either set PATH to include /usr/local/bin, or just refer to the fully-qualified path of mysqldump (/usr/local/bin/mysqldump). -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: TRUE realtime priority
On Tue, Oct 07, 2008 at 11:18:32AM +0200, Wojciech Puchar wrote: >> Well, basically you are the only one who can answer that. And that's not >> a paradox or an attempt at humor. You should investigate. Maybe >> interrupts aren't processed fast enough (hardware sharing an >> interrupt?), or memory or kernel resources are low. > > well last night i tested it with SCHED_4BSD instead of sched_ule, reduced > quantum to 2 from 10 and for now - no voice chopping under high > load. but i will test it more. What version of FreeBSD are you using for this? Yes, it matters. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Script works fine from CLI, but not when Cron'd
On Tue, 2008-10-07 at 10:20 +0100, Marc Coyles wrote: > I've got a script to backup my MySQL databases, which works absolutely > fine from the command line, but when I add it in to root's cronjobs it > always fails with "mysqldump: not found" - what am I doing wrong? > > Script as follows: > > #!/bin/sh > USER= > PASS= > > mysqldump --opt -h localhost -u $USER -p$PASS horbury_dppd06 > >/home/horbury/backup_mysql/dppd06.sql > > > And that's it... > When run as root from CLI, works with no errors. When run from cron as > root, get the "not found" problem. > > > Marc A Coyles - Horbury School ICT Support Team > Mbl: 07850 518106 > Land: 01924 282740 ext 730 > Helpdesk: 01924 282740 ext 2000 > > > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" When it is run from cron it is not picking up the shell .profile so PATH is not set. As mysqldump is sitting in a directory in one of the paths (/usr/local/bin ??) Quick fix use full path details in the mysqldump line. Or Source in a .profile to set the paths. Regards Craig B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Script works fine from CLI, but not when Cron'd
On Tue, Oct 7, 2008 at 10:20 AM, Marc Coyles <[EMAIL PROTECTED]> wrote: > I've got a script to backup my MySQL databases, which works absolutely > fine from the command line, but when I add it in to root's cronjobs it > always fails with "mysqldump: not found" - what am I doing wrong? Things started from cron inherit a different PATH. Either add the appropriate directories to PATH or specify the full path to mysqldump. -- /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Script works fine from CLI, but not when Cron'd
I've got a script to backup my MySQL databases, which works absolutely fine from the command line, but when I add it in to root's cronjobs it always fails with "mysqldump: not found" - what am I doing wrong? Script as follows: #!/bin/sh USER= PASS= mysqldump --opt -h localhost -u $USER -p$PASS horbury_dppd06 >/home/horbury/backup_mysql/dppd06.sql And that's it... When run as root from CLI, works with no errors. When run from cron as root, get the "not found" problem. Marc A Coyles - Horbury School ICT Support Team Mbl: 07850 518106 Land: 01924 282740 ext 730 Helpdesk: 01924 282740 ext 2000 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: TRUE realtime priority
Well, basically you are the only one who can answer that. And that's not a paradox or an attempt at humor. You should investigate. Maybe interrupts aren't processed fast enough (hardware sharing an interrupt?), or memory or kernel resources are low. well last night i tested it with SCHED_4BSD instead of sched_ule, reduced quantum to 2 from 10 and for now - no voice chopping under high load. but i will test it more. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: TRUE realtime priority
for example when lots of spam comes to server and lots of resource hungry spamassassin processes are spawned our calls starts to be crappy. And that's why I always have isolated my telephony servers from normal-ISP tasks: They provide real-time tasks and should be running in memory only. i know that but it's not an answer to my question anyway. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: BSD mag
On Tue, 2008-10-07 at 09:25 +0200, Karolina Lesińska wrote: > Dear Craig, > > Thanks for your interest in BSD mag and sorry for all inconviniences. > > I have checked your subscription status. You have subscribed on September > 18th, and the issues were sent on September 22nd. > > You should have the mags any day now. Let me know in case you do not have > them > till Friday and I will send it once again. > > Could you please send your address again- just in case there are some > mistakes. > > Thanks and once again sorry for all toubles! > > best regards > Karolina > Hi Karolina Thank you for the reply. I have sent you an email off list with my address details in. Hopefully I can be a happy BSD mag reader soon. Kind Regards Craig Butler ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: update.FreeBSD.org / No mirrors remaining, giving up
Hi, 2008/10/7 Edwin Groothuis: >> $ freebsd-update fetch >> Fetching metadata signature for 7.0-RELEASE from update.FreeBSD.org... >> failed. >> No mirrors remaining, giving up. > > I've heard this before and it is caused by resolvers (most likely > your router?) which don't understand requests for SRV records. > > Use your ISPs nameservers instead of your router and it should be > fine. This issue and its fix have been described here: http://www.nabble.com/misc-127498:-update.freebsd.org-does-not-exist-td19572945.html I was already using my ISP nameserver so it was not the problem. -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
update.FreeBSD.org / No mirrors remaining, giving up
> $ freebsd-update fetch > Fetching metadata signature for 7.0-RELEASE from update.FreeBSD.org... failed. > No mirrors remaining, giving up. I've heard this before and it is caused by resolvers (most likely your router?) which don't understand requests for SRV records. Use your ISPs nameservers instead of your router and it should be fine. Edwin -- Edwin Groothuis Website: http://www.mavetju.org/ [EMAIL PROTECTED] Weblog: http://www.mavetju.org/weblog/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
BSD mag
Dear Craig, Thanks for your interest in BSD mag and sorry for all inconviniences. I have checked your subscription status. You have subscribed on September 18th, and the issues were sent on September 22nd. You should have the mags any day now. Let me know in case you do not have them till Friday and I will send it once again. Could you please send your address again- just in case there are some mistakes. Thanks and once again sorry for all toubles! best regards Karolina -- Linux+ DVD BSD magazine Karolina Lesińska Product Manager /// Software Media LLC 1521 Concord Pike, Suite 301 Brandywine Executive Center Wilmington, DE 19803 USA phone number: 1-917-338 - 3631 fax: +48 22 244 24 59 www.lpmagazine.org/en www.bsdmag.org http://www.buyitpress.com/en/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: compat/linux program claims "no write access to ~"
"Steve Franks" <[EMAIL PROTECTED]> writes: > Sounds like a bogus error to me. I just downgraded amd64 to i386, > reinstalled a linux program and it claims it can't write to ~ now. > I'm running it, and I have no reason to think it wouldn't run as me. > ~ is 775 anyway. Also, running the linux program as su or sudo gives > the same error. Any ideas just where this might be coming from? I'm > on 7-STABLE, i386, linux-base-fc4. You may use ktrace/linux_kdump to find a culprit. BTW, make sure you don't have LINUXBASE/home/user as well as ~. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"