Re: TRIM support on SSD via ata(4)
On Tue, Jan 22, 2013 at 12:13:46PM +0700, Alexey Dokuchaev wrote: Unfortunately, I cannot use ahci(4) and limited to atacontrol(8), which does not have identify command like camcontrol(8). Shall I recompile the kernel with ATA_CAM option? I've switched to ATA_CAM and removed atadisk from /boot/loader.conf. CAM driver reported flags 0x896, which includes ADA_FLAG_CAN_TRIM (0x080). In adaregister() of /sys/cam/ata/ata_da.c, this is enough to in turn enable DISKFLAG_CANDELETE disk flag: if ((softc-flags ADA_FLAG_CAN_TRIM) || ((softc-flags ADA_FLAG_CAN_CFA) !(softc-flags ADA_FLAG_CAN_48BIT))) softc-disk-d_flags |= DISKFLAG_CANDELETE; In /sys/dev/ata/ata-disk.c, this check is different: if ((atadev-param.support.command2 ATA_SUPPORT_CFA) || atadev-param.config == ATA_PROTO_CFA) adp-disk-d_flags |= DISKFLAG_CANDELETE; Since this disk evidently does not support CFA, ata(4) was not raising DISKFLAG_CANDELETE flag. With CAM_ATA, I can now use camcontrol(8) to talk to my disks: # camcontrol identify ada0 | egrep TRIM\|Feature Feature Support Enabled Value Vendor data set management (TRIM) yes TRIM on fs but drive does not have it warning is gone. I wonder why legacy ata(4) did not enable TRIM though. ./danfe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
TRIM support on SSD via ata(4)
Hi there, I've just bought this Crucial M4 SSD few days ago as a (hopefully) nice upgrade option for my old laptop (I'm currently using it via SATA-IDE cdrom bay). Not the best setup, but alas I see no other options for me due to lack of any real SATA ports and an old controller (my system is recent 8.3-STABLE): $ pciconf -lv | grep -i ata atapci0@pci0:0:31:1:class=0x01018a card=0x83191033 chip=0x266f8086 rev=0x04 hdr=0x00 device = 'PATA100 Controller - 266F (82801FB/FBM/FW/FR/FRW)' subclass = ATA Anyway, drive is recognized and seems to work quite fine, but one thing in dmesg puzzles me when I mount filesystem from SSD: TRIM flag on fs but disk does not support TRIM Under Linux, hdparm(8) reports that TRIM is supported, so I'm wondering why FreeBSD does not see it. My ata(4) support in /boot/loader.conf looks like this (little to none hardware support is compiled into the kernel): ataintel_load=YES atadisk_load=YES atapci_load=YES $ kldstat | grep ata 201 0xc0a65000 4734 atadisk.ko 215 0xc0a6a000 e398 ata.ko 223 0xc0a79000 80d4 atapci.ko 381 0xc0afc000 76ec ataintel.ko 392 0xc0b04000 6f50 ataahci.ko Unfortunately, I cannot use ahci(4) and limited to atacontrol(8), which does not have identify command like camcontrol(8). Shall I recompile the kernel with ATA_CAM option? Is there way to force TRIM support, perhaps by sending ATA commands directly to the drive? Thanks, ./danfe P.S. Buying a new laptop is the easiest solution, but I do not want to do that for various reasons, mostly because it's quite hard to find one that would be nicely supported by FreeBSD these days. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: (8.2) amd64 + linuxulator + nvidia driver is it stable ?
On Wed, May 11, 2011 at 12:02:47PM -0400, Jerry wrote: Does anyone know why the x11/nvidia-driver port has not been updated? Frequent ENOTIME on my side to perform all required testing. :-( The latest version is 270.41.06 according to the nVidia page: I've updated the port few minutes ago. Sorry it took that long. ./danfe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Couple of amd64-specific questions
Hi there, I've recently got a chance to run a rather modern CPU and mobo for a few weeks, and since the beast is 8GB worth of RAM, I figured amd64 would fit nicely in it. After updating to HEAD to trying usual make world/kernel magic, the following issues arised I haven't seen previously in i386: - SYSV{SHM,MSG,SEM} need to be compiled in kernel for 32-bit compatibility syscalls, despite the fact corresponding modules are available. On i386, I always stripped SYSV-style IPC stuff out of my kernel. Question: is it theoretically possible to build freebsd32 compat module standalone? I'd rather have all compat stuff (linux, etc.) as a loadable modules anyways (not to mention that I don't want to have SYSV* options in my kernel config). - What are technical reasons why ACPI has to be compiled in kernel? Google wasn't very helpful here for me. Thanks. ./danfe ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Weird error messages during portsdb -Uu
Hi, While running `portsdb -Uu' after every ports cvsup, I get the following numerous messages, i.e.: # portsdb -Uu Updating the ports index ... p5-DateTime-0.16: non-existent -- dependency list incomplete b/perl5/site_perl/5.005/DateTime/Locale.pm:/usr/ports/devel/p5-DateTime-Locale /usr/local/lib/perl5 /site_perl/5.005/Time/Local.pm:/usr/ports/devel/p5-Time-Local: malformed entry: b/perl5/site_perl/5. 005/DateTime/Locale.pm:/usr/ports/devel/p5-DateTime-Locale /usr/local/lib/perl5/site_perl/5.005/Tim e/Local.pm:/usr/ports/devel/p5-Time-Local| ko-nabi-0.3: non-existent -- dependency list incomplete ko-nabi-0.3:/usr/ports/graphics/libarko-openoffice-1.0.3_2 non-existent -- dependency list incompl ete t_lgpl2 gnome-2.200:/usr/ports/x11/libgnome bonoboui-2.0:/usr/ports/x11-toolkits/libbonoboui gnomeui -2.200:/usr/ports/x11-toolkits/libgnomeui gnome-desktop-2.3:/usr/ports/x11/gnomedesktop wnck-1.9:/us r/ports/x11-toolkits/libwnck panel-applet-2.0:/usr/ports/x11/gnomepanel : malformed entry: t_lgpl2 g nome-2.200:/usr/ports/x11/libgnome bonoboui-2.0:/usr/ports/x11-toolkits/libbonoboui gnomeui-2.200:/u sr/ports/x11-toolkits/libgnomeui gnome-desktop-2.3:/usr/ports/x11/gnomedesktop wnck-1.9:/usr/ports/x 11-toolkits/libwnck panel-applet-2.0:/usr/ports/x11/gnomepanel | /usr/X11R6/share/gnome/.keep_me:/u sr/ports/misc/gnomehier /usr/X11R6/libdata/pkgconfig/gnome-mime-data-2.0.pc:/usr/ports/misc/gnomemi medatapkg-config:/usr/ports/devel/pkgconfig| plplot-5.2.1_2: non-existent -- dependency list incomplete p5-GnomePrint-0.7008: non-existent -- dependency list incomplete p5-GnomePrint-0.7008:/usr/p5-PDFLib-0.12_1 non-existent -- dependency list incomplete ports/print/gnomeprint bonobo.2:/usr/ports/devel/bonobo gda-client.0:/usr/ports/databases/libgda gno medb.0:/usr/ports/databases/gnomedb glade.4:/usr/ports/devel/libglade gal.23:/usr/ports/x11-toolkits /gal glibwww.1:/usr/ports/www/glibwww gtkhtml-1.1.3:/usr/ports/www/gtkhtml : malformed entry: ports/ print/gnomeprint bonobo.2:/usr/ports/devel/bonobo gda-client.0:/usr/ports/databases/libgda gnomedb.0 :/usr/ports/databases/gnomedb glade.4:/usr/ports/devel/libglade gal.23:/usr/ports/x11-toolkits/gal g libwww.1:/usr/ports/www/glibwww gtkhtml-1.1.3:/usr/ports/www/gtkhtml |/usr/local/lib/perl5/site_perl /5.005/i386-freebsd/Gnome.pm:/usr/ports/x11-toolkits/p5-Gnome /usr/local/lib/perl5/site_perl/5.005/ i386-freebsd/Gtk/Gdk/Pixbuf.pm:/usr/ports/x11-toolkits/p5-GdkPixbuf /usr/local/lib/perl5/site_perl/ 5.005/i386-freebsd/Gtk/Gdk/ImlibImage.pm:/usr/ports/x11-toolkits/p5-GdkImlib pkg-config:/usr/ports/devel/pkgconfig /usr/X11R6/share/gnome/.keep_me:/usr/ports/misc/gnomehier pkg-config:/usr/ports/devel/pkgconfig| p5-GtkHTML-0.7006_1: non-existent -- dependency list incomplete p5-GtkHTML-0.7006_1: non-existent -- dependency list incomplete .4:/usr/ports/devel/libglade gal.23:/usr/ports/x11-toolkits/gal glibwww.1:/usr/ports/www/glibwww gtk html-1.1.3:/usr/ports/www/gtkhtml : malformed entry: .4:/usr/ports/devel/libglade gal.23:/usr/ports/ x11-toolkits/gal glibwww.1:/usr/ports/www/glibwww gtkhtml-1.1.3:/usr/ports/www/gtkhtml |/usr/local/l ib/perl5/site_perl/5.005/i386-freebsd/Gnome.pm:/usr/ports/x11-toolkits/p5-Gnome /usr/local/lib/perl 5/site_perl/5.005/XML/Writer.pm:/usr/ports/textproc/p5-XML-Writer pkg-config: /usr/ports/devel/pkgconfig /usr/X11R6/share/gnome/.keep_me:/usr/ports/misc/gnomehier pkg-config:/usr/ports/devel/pkgconfig| make_index: p5-GtkHTML-0.7006_1: no entry for /usr/local make_index: p5-GtkHTML-0.7006_1: no entry for /usr/local make_index: axpoint-1.30: no entry for /usr/ports/print/p5-PDFLib make_index: axpoint-1.30: no entry for /usr/ports/print/p5-PDFLib make_index: p5-DateTime-Event-NameDay-0.02: no entry for /usr/ports/devel/p5-DateTime-Calendar-Chris tian make_index: p5-DateTime-Event-NameDay-0.02: no entry for /usr/ports/devel/p5-DateTime-Calendar-Chris tian make_index: ko-nabi-0.3: no entry for /usr/local make_index: ko-nabi-0.3: no entry for /usr/local make_index: p5-GnomePrint-0.7008: no entry for /usr/local make_index: p5-GnomePrint-0.7008: no entry for /usr/local make_index: p5-DateTime-0.16: no entry for /usr/ports/devel/p5-DateTime-Calendar-Christian make_index: p5-DateTime-0.16: no entry for /usr/ports/devel/p5-DateTime-Calendar-Christian make_index: p5-Log-TraceMessages-1.3: no entry for /usr/ports/www/p5-HTML-FromText make_index: p5-Log-TraceMessages-1.3: no entry for /usr/ports/www/p5-HTML-FromText done [Updating the portsdb format:bdb1_btree in /usr/ports ... - 9043 port entries found .1000. 2000.3000.4000.5000.6000.7000.8000.9 000 . done] # Can anyone comment on this (reasons, how to fix, etc)? Thanks. ./danfe ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To