[ 
https://issues.apache.org/jira/browse/LUCENE-5951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14251626#comment-14251626
 ] 

Uwe Schindler edited comment on LUCENE-5951 at 12/18/14 1:25 PM:
-----------------------------------------------------------------

I am interested to see, if the detection works correctly on Policeman Jenkins. 
This machine has an SSD, so what is the best way to see from test output if it 
detected an SSD? To me the algorithm looks correct!

{noformat}
serv1:~# mount
/dev/md1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/md0 on /boot type ext2 (rw)
/dev/sdc1 on /mnt/ssd type ext4 (rw,noatime,discard)
serv1:~# cat /sys/block/sda/queue/rotational
1
serv1:~# cat /sys/block/sdb/queue/rotational
1
serv1:~# cat /sys/block/sdc/queue/rotational
0
serv1:~#
{noformat}

DYI: The Worksspace is on /mnt/ssd.


was (Author: thetaphi):
I am interested to see, if the detection works correctly on Policeman Jenkins. 
This machine has an SSD, so what is the best way to see from test output if it 
detected an SSD? To me the algorithm looks correct!

{noformat}
serv1:/sys/block/sdc# mount
/dev/md1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/md0 on /boot type ext2 (rw)
/dev/sdc1 on /mnt/ssd type ext4 (rw,noatime,discard)
serv1:/sys/block/sdc# cat /sys/block/sda/queue/rotational
1
serv1:/sys/block/sdc# cat /sys/block/sdb/queue/rotational
1
serv1:/sys/block/sdc# cat /sys/block/sdc/queue/rotational
0
serv1:/sys/block/sdc#
{noformat}

DYI: The Worksspace is on /mnt/ssd.

> Detect when index is on SSD and set dynamic defaults
> ----------------------------------------------------
>
>                 Key: LUCENE-5951
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5951
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>         Attachments: LUCENE-5951.patch, LUCENE-5951.patch, LUCENE-5951.patch, 
> LUCENE-5951.patch, LUCENE-5951.patch, LUCENE-5951.patch
>
>
> E.g. ConcurrentMergeScheduler should default maxMergeThreads to 3 if it's on 
> SSD and 1 if it's on spinning disks.
> I think the new NIO2 APIs can let us figure out which device we are mounted 
> on, and from there maybe we can do os-specific stuff e.g. look at  
> /sys/block/dev/queue/rotational to see if it's spinning storage or not ...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to